-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Stable Diffusion 2 #1392
Comments
|
|
🤗 Diffusers with Stable Diffusion 2 is live!anton-l commented (#1388 (comment)) 📰 News
✏️ Notes & InformationRelated huggingface/diffusers Pull Requests:
👇 Quick Links:
👁️ User Submitted Resources:
💭 User StoryStable Diffusion 2.0 has recently been released. When you run
Output: Traceback (most recent call last):
File "convert_original_stable_diffusion_to_diffusers.py", line 720, in <module>
unet.load_state_dict(converted_unet_checkpoint)
File "lib\site-packages\torch\nn\modules\module.py", line 1667, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for UNet2DConditionModel:
size mismatch for down_blocks.0.attentions.0.proj_in.weight: copying a param with shape torch.Size([320, 320]) from checkpoint, the shape in current model is torch.Size([320, 320, 1, 1]).
size mismatch for down_blocks.0.attentions.0.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([320, 1024]) from checkpoint, the shape in current model is torch.Size([320, 768]).
size mismatch for down_blocks.0.attentions.0.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([320, 1024]) from checkpoint, the shape in current model is torch.Size([320, 768]).
size mismatch for down_blocks.0.attentions.0.proj_out.weight: copying a param with shape torch.Size([320, 320]) from checkpoint, the shape in current model is torch.Size([320, 320, 1, 1]).
.... blocks.1.attentions blocks.2.attentions etc. etc. |
|
|
|
From @pcuenca on the HF discord:
|
|
And available in 0.9.0! Damn fast job, guys! |
|
|
Closing :) |
Model/Pipeline/Scheduler description
Perhaps you already have something in the works for this, but I couldn't see an existing issue for this.
Stable Diffusion 2 just got released on a separate repo. There are a few variations including the base, depth2img, and inpainting models. Though useable in the stable diffusion repo now, it would be really awesome to have support in diffusers to allow for ease of us in other applications!
Open source status
Provide useful links for the implementation
Model code and inference scripts can be found here
Model weights seem already available on 🤗 Hub at
stabilityai/stable-diffusion-2-***
The text was updated successfully, but these errors were encountered: