基於tf的pose-estimation

基於tf的pose-estimation

依賴:

•python3

•tensorflow 1.4.1+

•opencv3, protobuf, python3-tk

•slim

•slidingwindow

安裝:

1、安裝依賴包

pip3 install -r requirements.txt

在安裝ast時會報錯: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users.....

不用管,Python已經有ast了,所以把ast刪掉,再pip install一遍。

2、build post processing的C++庫

$ cd tf_pose/pafprocess

$ swig -python -c++ pafprocess.i && python3 setup.py build_ext --inplace

3、安裝tf-pose

$ cd tf-openpose

$ python setup.py install

4、單個圖像demo

$ python run.py --model=mobilenet_thin --resize=432x368 --image=./images/p1.jpg

5、攝像頭demo

Realtime Webcam

$ python run_webcam.py --model=mobilenet_thin --resize=432x368 --camera=0

6、檢測本地視頻:

python src/run_video.py --model=mobilenet_thin --resolution=432x368 --video=child.mp4

基於tf的pose-estimation

基於tf的pose-estimation


分享到:


相關文章: