Instructions to use markury/FLUX-dev-LoRA-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use markury/FLUX-dev-LoRA-test with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("markury/FLUX-dev-LoRA-test") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
AttributeError: 'FluxPipeline' object has no attribute 'load_adapter'
(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?