AttributeError: 'FluxPipeline' object has no attribute 'load_adapter'

#1
by rdcoder - opened

(fluxenv) azureuser@5-jul-8-a100:~$ python flux_lora.py
Loading checkpoint shards: 100%|████████████████████████████████████████████| 2/2 [00:01<00:00, 1.48it/s]
Loading pipeline components...: 43%|████████████████▋ | 3/7 [00:01<00:01, 2.37it/s]You set add_prefix_space. The tokenizer needs to be converted from the slow tokenizers
Loading pipeline components...: 100%|███████████████████████████████████████| 7/7 [00:05<00:00, 1.33it/s]
Traceback (most recent call last):
File "/home/azureuser/flux_lora.py", line 8, in
pipeline.load_adapter("pytorch_lora_weights.safetensors")
File "/home/azureuser/fluxenv/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 143, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'FluxPipeline' object has no attribute 'load_adapter'

Should I use load_lora_weights instead?

Sign up or log in to comment