-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Fix runtime error in dreambooth training script #6282
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
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
@williamberman could you take a look here? |
|
Thanks for the PR @ctawong, can you explain a bit why the change is needed here? I don't understand #5932 as it's very messy and also am generally not a big fan of adding |
|
The script errors out when the model to train from does not have a VAE. The original code attempted to handle it but failed. The same bug was in the Lora training script in the same folder, and is fixed by PR #3462. I don’t like the try except either but applied the same fix as in #3462 for consistency. |
|
The training script is meant to be for Stable Diffusion models which always have a VAE no? I think it'd be better to raise a nice error here instead |
|
The training script is meant for Stable Diffusion models with or without a VAE. Model without VAE is supported, just that the VAE check failed. This PR fixes the VAE check. |
|
Can I merge this? |
Is not true. This training script can be used with Deepfloyd IF, too. Since this script was tested rigorously against a few combination of models, I am afraid we won't be able to consider these changes. |
As it stands now, the script doesn't even train from the SD 1.5 model |
|
The fast tests don't seem to tell me that. They run fine. For what combination of CLI args the script doesn't run? |
|
Tested on Windows Error message: The training is successful with this fix, which I stole from the LoRA training script which shared many codes with this script. |
|
Can you try updating |
|
Hi, it is already the latest version huggingface-hub 0.20.1
…On Thu, Jan 4, 2024 at 9:18 PM Sayak Paul ***@***.***> wrote:
Can you try updating huggingface_hub and see if that solves your problem?
Essentially what you're doing can be accomplished by the use of model_info
from the Hugging Face Hub library. I would try to debug that in isolation
and see if that's giving expected outputs.
—
Reply to this email directly, view it on GitHub
<#6282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZKQZKPN3SZMFY33K62OILYM5PH7AVCNFSM6AAAAABA7EMBMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGAZTCNRSGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Then this still stands: |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
What does this PR do?
Fixes #5932
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
This is a fix to a training example. So: @sayakpaul and @patrickvonplaten
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.