T2M demo inference fails on current main branch with shape mismatch (100 vs 800)

未关闭
#10 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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:

  1. bash scripts/text_encoding_demo.sh
  2. bash 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MotrixLab/ViMoGen 的其他 Issue

查看 MotrixLab/ViMoGen 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。