-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Saving error finetuning stable diffusion LoRA #2548
Comments
I have a same issue... |
Me too.
|
you could bypass this bug by modify train_text_to_image_lora.py.
|
Thank you, that seems to have fixed the problem. |
It seem to be |
@wangjuns you should consider opening a PR with those changes. |
The error also occurs when loading weights:
|
Looks like we need to fix something here! @sr5434 could you maybe add a link to the trained LoRA checkpoints ? Also cc @sayakpaul could you maybe try to have a look into this? :-) |
This is related to #2616. @wfng92 proposed a nice suggestion here: #2616 (comment). The easiest workaround for now seems to be #2616 (comment). |
Does this fix the problem: https://github.com/huggingface/diffusers/pull/2655/files ? |
@sayakpaul I tried the work around, but now the error occurs at load time. @patrickvonplaten I will send the LoRA weights as soon as I can. |
@patrickvonplaten here is my colab: https://colab.research.google.com/drive/1Z-Xt8c4Wjk5d3ft5VoC0P-J0y0427i4z?usp=sharing |
@0xhelloweb3 might have been an improper dependency resolution problem in your Colab. Mine worked fine: https://colab.research.google.com/gist/sayakpaul/a6640268902e3e75aef58b5c9f06f042/scratchpad.ipynb |
Thx, he problem has been solved and it works normally |
Yes, #2655 fixes the issue. Thank you @patrickvonplaten for creating the PR. |
Describe the bug
After the stable diffusion model is fully trained, an error occurs:
After this error occurs, the weights for the model aren't saved.
Reproduction
I ran the below command in Google Colab:
Logs
System Info
Google colab running the latest version of diffusers.
Is this a bug, or is there something I have to do on my end to fix this?
The text was updated successfully, but these errors were encountered: