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

DiT 在 1.1 版本推理出错 #333

Open
songh11 opened this issue Apr 26, 2024 · 3 comments
Open

DiT 在 1.1 版本推理出错 #333

songh11 opened this issue Apr 26, 2024 · 3 comments
Labels
question Further information is requested stale

Comments

@songh11
Copy link

songh11 commented Apr 26, 2024

报错信息:
RuntimeError: Error(s) in loading state_dict for DiT:
size mismatch for x_embedder.proj.weight: copying a param with shape torch.Size([1152, 4, 2, 2]) from checkpoint, the shape in current model is torch.Size([1152, 4, 1, 2, 2]).

Copy link

github-actions bot commented May 4, 2024

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label May 4, 2024
@zhengzangw
Copy link
Collaborator

We do not reproduce this error. You should use automatic downloading for DiT weight. Otherwise, you need manually do something like:

if name in ["DiT-XL-2-512x512.pt", "DiT-XL-2-256x256.pt"]:

@zhengzangw zhengzangw added the question Further information is requested label May 10, 2024
@github-actions github-actions bot removed the stale label May 11, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants