Tencent / MimicMotion

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

ValueError: need at least one array to stack #41

Open pavelxx1 opened 4 months ago

pavelxx1 commented 4 months ago

Most of tested videos I have same issue

DWPose: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 164/164 [01:40<00:00,  1.64it/s]
Traceback (most recent call last):
  File "/workspace/MimicMotion/inference.py", line 136, in <module>
    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 "/workspace/MimicMotion/inference.py", line 95, in main
    pose_pixels, image_pixels = preprocess(
                                ^^^^^^^^^^^
  File "/workspace/MimicMotion/inference.py", line 58, in preprocess
    video_pose = get_video_pose(video_path, image_pixels, sample_stride=sample_stride)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/MimicMotion/mimicmotion/dwpose/preprocess.py", line 40, in get_video_pose
    detected_bodies = np.stack(
                      ^^^^^^^^^
  File "/root/miniconda3/envs/mimicmotion/lib/python3.11/site-packages/numpy/core/shape_base.py", line 445, in stack
    raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack
zyayoung commented 4 months ago

It appears that no body has been detected in the provided video.

pavelxx1 commented 4 months ago

@zyayoung Body is fully viewed in video , but I have issue with test_vid.mp4

pavelxx1 commented 4 months ago

@zyayoung Can u check ?

Pythonpa commented 3 months ago

The same , Such problems do occur in some videos. At first, I thought it was because there were more than one person in the video. However, when I continued to test, I did not encounter such problems in some videos in which two people appeared.

ansorre commented 1 week ago

Has this problem been solved? Because I'm getting it too!