1 pip install tqdm
2 pip install slidingwindow
3 pip install git+https://github.com/ppwwyyxx/tensorpack.git
4 swig
下载地址:Download SWIG
添加环境变量到path, 比如: E:\swigwin-4.0.0
在命令行执行: swig --help,不报错,就意味着安装成功了。
进入tf-pose-estimation-master文件夹下,cmd定位到D:\tf-pose-estimation\tf_pose\pafprocess
swig -python -c++ pafprocess.i && python setup.py build_ext --inplace
报错,如下所示:Unable to find vcvarsall.batx
解决办法:安装VS
5 安装pycocotools
pip install pycocotools
报错:Failed building wheel for pycocotools
解决办法:
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
6 matplotlib无法显示图片的解决方法(non-gui backend)
matplotlib默认使用的模式是agg,需要手动设置为TkAgg
在导完所有的包以后 加 matplotlib.use('TkAgg')就可以。
7 run
cmd定位到D:\tf-pose-estimation,运行
python run.py --model=mobilenet_thin --resize=432x368 --image=./images/p1.jpg
成功啦!!!!
参考资料:
代码:
https://github.com/ildoonet/tf-pose-estimation
博客:
https://blog.csdn.net/lvcoc/article/details/83109005
https://blog.csdn.net/qq_42393859/article/details/85275356
t 5--成功啦
inplace