-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
single_file_utils.py#load_single_file_model_checkpoint bugs #7889
Labels
bug
Something isn't working
Comments
Please provide a reproducible snippet. Cc: @DN6 |
Ran:
Got:
Expected:
|
This is still not fully reproducible. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Loading a checkpoint from file crashes as it tries to print a warning with unexpected keys because is accessing
__name__
on incorrect target (instance instead of class)https://github.com/huggingface/diffusers/blob/d50baf0c632342b9576a24352244c4235ce8b875/src/diffusers/loaders/single_file_utils.py
f"Some weights of the model checkpoint were not used when initializing {vae.__name__}
f"Some weights of the model checkpoint were not used when initializing {unet.__name__}
f"Some weights of the model checkpoint were not used when initializing {controlnet.__name__}
should be:
[...].__class__.__name__
Reproduction
load a single file checkpoint with extra keys
Logs
No response
System Info
diffusers
version: 0.27.2Who can help?
@sayakpaul
The text was updated successfully, but these errors were encountered: