mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

[Bug] After running inferencer_demo.py with --num-instances=2, the output video cannot play

Open JiahaoPlus opened this issue 2 years ago • 4 comments

Prerequisite

  • [X] I have searched Issues and Discussions but cannot get the expected help.
  • [X] The bug has not been fixed in the latest version(https://github.com/open-mmlab/mmpose).

Environment

Reproduces the problem - code sample

Reproduces the problem - command or script

python demo/inferencer_demo.py xxx.mp4 \
    --pose3d human3d --vis-out-dir output  \
    --radius 4 --thickness 2 --num-instances 2

Reproduces the problem - error message

The output video cannot play

Additional information

I have a video including two persons. If I set --num-instances to be 1, the generated video for visualization can be normally played, but the 3D keypoint visualization will flicker between the 2 persons. If I set --num-instances to be 2 or -1, the generated video cannot be opened.

JiahaoPlus avatar Oct 19 '23 07:10 JiahaoPlus

The input video resolution is 1920x1080.

JiahaoPlus avatar Oct 19 '23 07:10 JiahaoPlus

Hi, thank you for your feedback. Could you provide the input video? It would help us debug.

Ben-Louis avatar Oct 20 '23 11:10 Ben-Louis

Sorry I could not share that exact input video due to privacy issues, but other videos online can have a similar problem. For example, I made a clip from a youtube video (https://www.youtube.com/watch?v=IaFNaMuiWAM) for your test. Download the clip here: https://drive.google.com/file/d/1fq-C-YURWHL7uagnypNsDq7gZwGv04en/view?usp=drive_link

JiahaoPlus avatar Nov 09 '23 18:11 JiahaoPlus

The environment I am using:

mmcv                   2.0.1
mmdet                  3.1.0
mmengine               0.8.4
mmpose                 1.2.0
numpy                  1.25.2
opencv-python          4.8.0.76
opendatalab            0.0.10
openmim                0.3.9
openxlab               0.0.24
torch                  2.0.1
torchvision            0.15.2

JiahaoPlus avatar Nov 09 '23 18:11 JiahaoPlus