-
Notifications
You must be signed in to change notification settings - Fork 5.9k
pipe.unet.load_attn_procs not working in diffusers` version: 0.16.0 #3221
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
Comments
cc @sayakpaul |
Could you install |
I had the same error. I run this in latest version diffusers |
Could you post a reproducible code snippet? And also which Diffusers version are you using? |
@sayakpaul could you take a look at this issue #3284 , I made some change to the code mentioned in #3284 , and now I can run the training lora until it finishes all steps(meaning the progress display shows 500/500). However, I still get the same error at the end:
|
We need to be able to reproduce this issue. I did the following tests on my end. First, I installed Then I ran inference with three checkpoints:
I used the following code to test inference WITHOUT any failures: from huggingface_hub.repocard import RepoCard
from diffusers import StableDiffusionPipeline
import torch
# any of the above checkpoints should work here
lora_model_id = "sayakpaul/dreambooth-text-encoder-test"
card = RepoCard.load(lora_model_id)
base_model_id = card.data.to_dict()["base_model"]
pipe = StableDiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
pipe.load_lora_weights(lora_model_id)
image = pipe("A picture of a sks dog in a bucket", num_inference_steps=25).images[0] Anything I am missing out on? I have also created this PR to clear some ambiguity around loading method for LoRA: #3299 |
Describe the bug
I use unet.load_attn_procs but not working after update diffusers project.
what is load_lora_weights?
what is the difference between new and old lora format?
How can I know it is new or old?
Reproduction
When
or
get
KeyError: 'down_blocks.0.attentions.0.transformer_blocks.0.attn1.processor'
``
When
it can run but not loading any lora weights.
Logs
No response
System Info
diffusers
version: 0.16.0.dev0The text was updated successfully, but these errors were encountered: