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

IndexError: list index out of range #74

Open
ximo2002 opened this issue Aug 12, 2024 · 4 comments
Open

IndexError: list index out of range #74

ximo2002 opened this issue Aug 12, 2024 · 4 comments

Comments

@ximo2002
Copy link

(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
Copy link

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

@soltkreig
Copy link

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

@ximo2002
Copy link
Author

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

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

@ykykkun
Copy link

ykykkun commented Aug 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants