Tencent / MimicMotion

High-Quality Human Motion Video Generation with Confidence-aware Pose Guidance
https://tencent.github.io/MimicMotion/
Other
1.84k stars 154 forks source link

IndexError: list index out of range #74

Open ximo2002 opened 2 months ago

ximo2002 commented 2 months ago

(mimicmotion) root@ddjd3:~/project/MimicMotion# python inference.py --inference_config configs/test.yaml 2024-08-12 15:01:12.347972725 [W:onnxruntime:, session_state.cc:1166 VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the preferred execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to improve perf. 2024-08-12 15:01:12.347998906 [W:onnxruntime:, session_state.cc:1168 VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-minimal build will show node assignments. DWPose: 100%|███████████████████████████████████████████████████████████| 62/62 [00:02<00:00, 28.33it/s] Traceback (most recent call last): File "/root/project/MimicMotion/inference.py", line 140, in main(args) File "/root/miniconda3/envs/mimicmotion/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/root/project/MimicMotion/inference.py", line 104, in main _video_frames = run_pipeline( ^^^^^^^^^^^^^ File "/root/project/MimicMotion/inference.py", line 72, in run_pipeline frames = pipeline( ^^^^^^^^^ File "/root/miniconda3/envs/mimicmotion/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/root/project/MimicMotion/mimicmotion/pipelines/pipeline_mimicmotion.py", line 549, in call if indices[-1][-1] < num_frames - 1:


IndexError: list index out of range
2623238476 commented 2 months ago

你传递的参数,视频总帧数那里看看。他这块逻辑有点乱

soltkreig commented 2 months ago

Have the same trouble, my video is less than 1 sec, how I can run mimic on it?

ximo2002 commented 2 months ago

你传递的参数,视频总帧数那里看看。他这块逻辑有点乱

这里是有什么要求嘛,还是要怎么对应才行呀

ykykkun commented 2 months ago

视频长度不够,你传76,fps 30的话,视频要有2秒多。