UNet2DModel - ValueError: cross_attention_dim must be specified for CrossAttnDownBlock2D #8736
Unanswered
phuongtrau
asked this question in
Q&A
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This should turned into a discussion as this is NOT a library issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When I load the model for my training, I just want to use the unconditional model. But I have this problem. Could anyone tell me how to solve this?
ValueError: cross_attention_dim must be specified for CrossAttnDownBlock2D
on
self.unet = UNet2DModel.from_pretrained(model_key, subfolder="unet").to(self.device)
Reproduction
from diffusers import AutoencoderKL, UNet2DModel, DDIMScheduler
import torch
import torch.nn as nn
import torch.nn.functional as F
class StableDiffusion(nn.Module):
Logs
System Info
Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.
diffusers
version: 0.28.0.dev0Who can help?
No response
Beta Was this translation helpful? Give feedback.
All reactions