mmpose
mmpose copied to clipboard
[Bug] After running inferencer_demo.py with --num-instances=2, the output video cannot play
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.
The input video resolution is 1920x1080.
Hi, thank you for your feedback. Could you provide the input video? It would help us debug.
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
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