T2M demo inference fails on current main branch with shape mismatch (100 vs 800)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- python
调研方向
Reproduce the failure with bash scripts/text_encoding_demo.sh followed by bash scripts/t2m_infer.sh. Start at train_eval_vimogen.py around generate_pipe and models/transformer/wan/modules/tm2m_model.py at the forward paths around lines 487 and 733, then trace why dimensions 100 and 800 reach the same operation. Done means the README quick-start inference completes without the reported shape mismatch.
由索引模型根据 Issue 内容生成。
描述
I followed the official README quick-start for T2M inference on the current main branch:
bash scripts/text_encoding_demo.shbash scripts/t2m_infer.sh
BTW, I changing:
train_target:
- transformer to []
But, I got the error like this
[rank0]: Traceback (most recent call last):
[rank0]: File "/home/ubuntu20/workspace/ViMoGen/train_eval_vimogen.py", line 664, in
[rank0]: main(main_args)
[rank0]: File "/home/ubuntu20/workspace/ViMoGen/train_eval_vimogen.py", line 590, in main
[rank0]: condition_gen_latents = generate_pipe(
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
[rank0]: return func(*args, **kwargs)
[rank0]: File "/home/ubuntu20/workspace/ViMoGen/train_eval_vimogen.py", line 351, in generate_pipe
[rank0]: noise_pred = inf_model(
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
[rank0]: return self._call_impl(*args, **kwargs)
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
[rank0]: return forward_call(*args, **kwargs)
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/distributed/fsdp/fully_sharded_data_parallel.py", line 863, in forward
[rank0]: output = self._fsdp_wrapped_module(*args, **kwargs)
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
[rank0]: return self._call_impl(*args, **kwargs)
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
[rank0]: return forward_call(*args, **kwargs)
[rank0]: File "/home/ubuntu20/workspace/ViMoGen/models/transformer/wan/modules/tm2m_model.py", line 733, in forward
[rank0]: ref_motion = block(ref_motion, **kwargs)
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
[rank0]: return self._call_impl(*args, **kwargs)
[rank0]: File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
[rank0]: return forward_call(*args, **kwargs)
[rank0]: File "/home/ubuntu20/workspace/ViMoGen/models/transformer/wan/modules/tm2m_model.py", line 487, in forward
[rank0]: x = x + y * e[2]
[rank0]: RuntimeError: The size of tensor a (100) must match the size of tensor b (800) at non-singleton dimension 1
[rank0]:[W812 23:03:31.264938947 ProcessGroupNCCL.cpp:1168] Warning: WARNING: process group has NOT been destroyed before we destruct ProcessGroupNCCL. On normal program exit, the application should call destroy_process_group to ensure that any pending NCCL operations have finished in this process. In rare cases this process can exit before this point and block the progress of another member of the process group. This constraint has always been present, but this warning has only been added since PyTorch 2.4 (function operator())
E0812 23:03:33.551000 140275331515008 torch/distributed/elastic/multiprocessing/api.py:833] failed (exitcode: 1) local_rank: 0 (pid: 3104105) of binary: /home/ubuntu20/anaconda3/envs/vigen/bin/python
Traceback (most recent call last):
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/distributed/run.py", line 905, in
main()
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 348, in wrapper
return f(*args, **kwargs)
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/distributed/run.py", line 901, in main
run(args)
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/distributed/run.py", line 892, in run
elastic_launch(
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 133, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/ubuntu20/anaconda3/envs/vigen/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 264, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
train_eval_vimogen.py FAILED
Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time : 2026-08-12_23:03:33
host : ubuntu20-System-Product-Name
rank : 0 (local_rank: 0)
exitcode : 1 (pid: 3104105)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
Can you tell me how should I solve this problem, thank you.
- 主要语言
- Python
- 星标
- 114
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MotrixLab/ViMoGen 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 1/5 1 小时以内 新手友好度 25/100
-
Motion FPS 未关闭
难度 3/5 1-2 天 新手友好度 30/100
-
难度 5/5 一周以上 新手友好度 15/100
查看 MotrixLab/ViMoGen 的全部 Issue
相似的 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 90/100
simonw/sqlite-utils#872 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100