-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Support fp16 in conversion from original ckpt #2733
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 documentation is not available anymore as the PR was closed or merged. |
# convert pipe to half | ||
pipe.unet = pipe.unet.half() | ||
pipe.vae = pipe.vae.half() | ||
pipe.text_encoder = pipe.text_encoder.half() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be done before saving the pipeline no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, thank you!
I think we can directly use the BTW @yiyixuxu we should probably add some nice docstring there |
done |
Nice job, lgtm! |
add --half to convert_original_stable_diffusion_to_diffusers.py
add --half to convert_original_stable_diffusion_to_diffusers.py
No description provided.