-
Notifications
You must be signed in to change notification settings - Fork 29
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
updating Stable Diffusion to 2.1? #12
Comments
Hi @KyonP , sorry for the delayed reply, I was busy with ICCV last week. I don't think you should modify the unet architecture, this will cause a loading failure (shape dismatch). Instead, you can add a linear layer between the CLIP and BLIP conditon and the Unet of stable diffusion 2.1. Also you may need to modify some of the diffusion code with reference of stable diffusion 2.1 official implementation. |
Thank you for your reply. I thought you submitted this work at a conference and working on a process (CVPR rebuttal or ICCV submission) :) I hacked into your code to upgrade SD 2.1, and unfortunately, failed as you expected, too many lines to modify. I will try your advice. |
@KyonP Great! Thanks for your understanding! If you have further question on moving to SD 2.1, feel free to leave me a message~ |
Thank you for your repository. It greatly helped.
Is there a plan to update the current version of stable diffusion used in your code to 2.1?
I've just tried to naively change the path to "stabilityai/stable-diffusion-2-1-base" and failed on "models.diffusers_override.unet_2d_blocks.py"; this line "out_channels // attn_num_head_channels,"
There seem to be differences in "attn_num_head_channels" between the two versions.
I am sorry that I cannot provide error message because I have already reverted my code.
In v2.1, "attn_num_head_channels" is a list, not an int.
Before I hack into it, I thought it would be a good time to ask if this would have been tried. I hope for your generous advice on this.
The text was updated successfully, but these errors were encountered: