Open-Sora icon indicating copy to clipboard operation
Open-Sora copied to clipboard

DiT 在 1.1 版本推理出错

Open songh11 opened this issue 2 years ago • 3 comments

报错信息: 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]).

songh11 avatar Apr 26 '24 11:04 songh11

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

github-actions[bot] avatar May 04 '24 01:05 github-actions[bot]

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

https://github.com/hpcaitech/Open-Sora/blob/c6cc021d612456455addc1b3164c1d43eeb33b97/opensora/utils/ckpt_utils.py#L39

zhengzangw avatar May 10 '24 05:05 zhengzangw

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

github-actions[bot] avatar May 18 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar May 27 '24 01:05 github-actions[bot]