-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Description
I'm getting this error attempting to load lora for flux trained with SimpleTuner:
AttributeError: 'FluxPipeline' object has no attribute 'load_adapter'
Desperate to get this working
import torch
from diffusers import DiffusionPipeline
# Load the pre-trained model and adapter
model_id = 'black-forest-labs/FLUX.1-dev'
adapter_id = 'markury/AndroFlow-FLUX-SimpleTuner-1'
pipeline = DiffusionPipeline.from_pretrained(model_id)
pipeline.load_adapter(adapter_id)
AttributeError Traceback (most recent call last)
[<ipython-input-5-51e24f338356>](https://localhost:8080/#) in <cell line: 8>()
6 adapter_id = 'markury/AndroFlow-FLUX-SimpleTuner-1'
7 pipeline = DiffusionPipeline.from_pretrained(model_id)
----> 8 pipeline.load_adapter(adapter_id)
[/usr/local/lib/python3.10/dist-packages/diffusers/configuration_utils.py](https://localhost:8080/#) in __getattr__(self, name)
141 return self._internal_dict[name]
142
--> 143 raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
144
145 def save_config(self, save_directory: Union[str, os.PathLike], push_to_hub: bool = False, **kwargs):
AttributeError: 'FluxPipeline' object has no attribute 'load_adapter'
Metadata
Metadata
Assignees
Labels
No labels