Daniil-Osokin / lightweight-human-pose-estimation-3d-demo.pytorch

Real-time 3D multi-person pose estimation demo in PyTorch. OpenVINO backend can be used for fast inference on CPU.
Apache License 2.0
656 stars 138 forks source link

error when running demos #20

Closed yxt132 closed 4 years ago

yxt132 commented 4 years ago

when I run the python demo using the command python demo.py --model human-pose-estimation-3d.pth --video 0

I got the following error. I am running it within Anaconda on my MacOS 10.13. Running with the OpenVino option gave me similar error.

I was able to access my camera by using a little test script. So there should be no problem there. Any idea how to solve it? Thanks!

2020-04-21 16:21:48.662 python[693:7647] +[AVCaptureDevice authorizationStatusForMediaType:]: unrecognized selector sent to class 0x7fffb06446a0 [ERROR:0] global /localdisk/jenkins/workspace/OpenCV/OpenVINO/2020.2/build/osx/opencv/modules/videoio/src/cap.cpp (265) open VIDEOIO(AVFOUNDATION): raised unknown C++ exception!

Traceback (most recent call last): File "demo.py", line 87, in for frame in frame_provider: File "/Users/yongtang/Documents/DL/CV/pose/Pose3D/modules/input_reader.py", line 36, in iter raise IOError('Video {} cannot be opened'.format(self.file_name)) OSError: Video 0 cannot be opened

Daniil-Osokin commented 4 years ago

Hi, do you use OpenCV to check if camera works? I suggest to try other values instead of 0, e.g. 1, or 2, or 3...

yxt132 commented 4 years ago

Thank you for your quick response! Yes, I did verify that the camera works using OpenCV. I think the problem lies somewhere else but not figured out yet.

Daniil-Osokin commented 4 years ago

That is strange, because demo also uses OpenCV, so behavior should be similar.

Daniil-Osokin commented 4 years ago

Hope, it works.