ValueError: Invalid LoRA checkpoint.

#5
by MohamedRashad - opened

Code to reproduce:

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()

I am not using ComfyUI (just normal diffusers)
How can i achieve this in my case ?

Sign up or log in to comment