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

size mismatch for model.diffusion_model.mixins.patch_embed.proj.weight: copying a param with shape torch.Size([3072, 256]) from checkpoint, the shape in current model is torch.Size([3072, 128]). #513

Open
echoanran opened this issue Nov 18, 2024 · 4 comments

Comments

@echoanran
Copy link

I followed https://github.com/THUDM/CogVideo/tree/main/sat/README.md to run bash inference.sh, and encountered the problem. The weights are downloaded from https://huggingface.co/THUDM/CogVideoX1.5-5B-SAT.
What could I do to fix the problem? Thanks for you help!

截屏2024-11-18 16 25 20
@nitinmukesh
Copy link

You will have to build diffusers from source including the PR
#510

@echoanran
Copy link
Author

I've build diffusers under branch cogvideox1.1-5b, and the current version is diffusers-0.32.0.dev0, but the problem still exists. Is there any other part to modify?

@nitinmukesh
Copy link

Compare pip list with this.
I had the same issue but after installing it today it got resolved (Windows 11)
#509 (comment)

@DStarEpoch
Copy link

build from source with https://github.com/zRzRzRzRzRzRzR/diffusers
pip install -e .
will solve this issue

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

3 participants