1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00
This commit is contained in:
sayakpaul
2025-12-11 11:32:54 +05:30
parent 3e374fda38
commit f037930b90

View File

@@ -1411,7 +1411,7 @@ class AuraFlowLoraLoaderMixin(LoraBaseMixin):
class FluxLoraLoaderMixin(LoraBaseMixin):
def __new__(cls, *args, **kwargs):
def __mro_entries__(cls, bases):
deprecation_message = (
"Importing `FluxLoraLoaderMixin` class like `from diffusers.loaders import FluxLoraLoaderMixin` is deprecated and will be removed in a future version. "
"Please use `from diffusers.pipelines.flux.lora_utils import FluxLoraLoaderMixin` instead. "
@@ -1419,7 +1419,7 @@ class FluxLoraLoaderMixin(LoraBaseMixin):
deprecate("FluxLoraLoaderMixin", "1.0.0", deprecation_message, standard_warn=False)
from ..pipelines.flux.lora_utils import FluxLoraLoaderMixin
return FluxLoraLoaderMixin(*args, **kwargs)
return (FluxLoraLoaderMixin,)
# The reason why we subclass from `StableDiffusionLoraLoaderMixin` here is because Amused initially