Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new loras from Flux Authors #9997

Open
MohamedAliRashad opened this issue Nov 22, 2024 · 2 comments
Open

Support new loras from Flux Authors #9997

MohamedAliRashad opened this issue Nov 22, 2024 · 2 comments

Comments

@MohamedAliRashad
Copy link

I have tried this code:

import torch
from diffusers import AutoPipelineForImage2Image

pipeline = AutoPipelineForImage2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipeline.unload_lora_weights()
pipeline.load_lora_weights("black-forest-labs/FLUX.1-Redux-dev")
pipeline.enable_model_cpu_offload()

and it gave me this error:

ValueError: Invalid LoRA checkpoint.
@ukaprch
Copy link

ukaprch commented Nov 22, 2024

Try something similar to this:

adapter_id = "Shakker-Labs/FLUX.1-dev-LoRA-blended-realistic-illustration"
pipe.load_lora_weights(adapter_id, weight_name="FLUX.1-dev-LoRA-add-details.safetensors")
#optionally:
pipe.fuse_lora(lora_scale=1.0)

@a-r-r-o-w
Copy link
Member

We're working on it in #9985 and #9999. Until then this error will be expected but those should be merged soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants