Skip to content
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

维度匹配不上啊 #4

Open
f-chen165 opened this issue Dec 3, 2024 · 2 comments
Open

维度匹配不上啊 #4

f-chen165 opened this issue Dec 3, 2024 · 2 comments

Comments

@f-chen165
Copy link

File "/vepfs/home/fanchen/fc_test_ID/DreamRunner/MotionDirector_SR3AI/diffusers/models/attention_processor.py", line 1927, in call
hidden_states = F.scaled_dot_product_attention(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: The size of tensor a (9004) must match the size of tensor b (17104) at non-singleton dimension 3

@wz0919
Copy link
Owner

wz0919 commented Dec 3, 2024

17104 = 226 x 4 + 30 x 45 x 12
9004 = 226 x 4 + 30 x 45 x 6

It looks like the number of latent frames you used for computing the mask is different from the number of latent frames in your current hidden states. (one is 6 and the other is 12) The number of text conditions is similar (both are 4 conditions)
did you use the right frame size (48 in our case) and provide the right mask with a total of 12 latent frames?

@f-chen165
Copy link
Author

17104 = 226 x 4 + 30 x 45 x 12 9004 = 226 x 4 + 30 x 45 x 6

It looks like the number of latent frames you used for computing the mask is different from the number of latent frames in your current hidden states. (one is 6 and the other is 12) The number of text conditions is similar (both are 4 conditions) did you use the right frame size (48 in our case) and provide the right mask with a total of 12 latent frames?

十分感谢您的回复,我确实使用的是24帧的生成情况,主要是48帧时80GB的A100会out of memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants