1 Star 0 Fork 31

WT / AlphaPose

forked from Gitee 极速下载 / AlphaPose 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
faq.md 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
Jeff-sjtu 提交于 2019-12-22 16:09 . init new version

AlphaPose - Frequently Asked Question (FAQ)

FAQ

  1. Can't open webcan or video file

FAQ

Can't open webcam or video file

Q: - I can't open the webcam or video file.

A: Try re-install opencv-python with version >= 3.3.1.11 by

pip3 uninstall opencv_python
pip3 install opencv_python --user

Many people meet this problem at https://github.com/opencv/opencv/issues/8471. The solution I use is

sudo cp <path to opencv source repo>/build/lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so /usr/local/lib/python3.5/dist-packages/cv2/cv2.cpython-35m-x86_64-linux-gnu.so

The idea is to replace the cv2.so library provided by pypi with the one compiled from sources. You can check for more info at https://github.com/opencv/opencv/issues/8471.

Can't open webcam

Q: - I can't open the webcam with the latest opencv-python

A: Check if your device is valid by

ls /dev/video*

Usually you can find video0, but if you have a device with other index like video3, you can run the program by

python3 webcam_demo.py --webcam 3 --outdir examples/res --vis

Program crash

Q1: - I meet Killed when processing heavy task, like large videos or images with crowded persons.

A: Your system meets out of cpu memory and kills the program autoly. Please reduce the length of result buffer by setting the --qsize flag. By default length, free cpu memory over 70G+ is recommended in heavy task.

Q2: - I meet segmentation fault when processing heavy task, like large videos or images with crowded persons.

A: The parallelization module torch.multiprocessing is prone to shared memory leaks. Its garbage collection mechanism torch_shm_manager may cause segmentation fault under long-time heavy load. We found this issue when processing large videos with hundreds of persons. To avoid this issue, you can set --sp flag to use multi-thread instead, which sacrifices a little efficiency for more stablity.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yangruoyang9987/AlphaPose.git
git@gitee.com:yangruoyang9987/AlphaPose.git
yangruoyang9987
AlphaPose
AlphaPose
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891