win平台安装pycocotools和 crowdposetools


pycocotools

pycocotools的原作者没有考虑window版本。

但是大佬改写了支持window的coco地址:https://github.com/philferriere/cocoapi

所以安装方案如下:

1.到https://github.com/philferriere/cocoapi上,把源码克隆下来,进入cmd命令行终端,cd cocoapi\PythonAPI,运行如下指令:

2.

1 # install pycocotools locally
2 python setup.py build_ext --inplace
3  
4 # install pycocotools to the Python site-packages
5 python setup.py build_ext install

 

crowdposetools 

首先到https://github.com/Jeff-sjtu/CrowdPose.git,克隆下源码,

之后进入 crowdpose_api/PythonAPI,

修改setup.py的源码:修改如下:

 

 之后执行命令:

1 # instal crowdposetools locally
2 python setup.py build_ext --inplace
3  
4 # install crowdposetools to the Python site-packages
5 python setup.py build_ext install

就OK了

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM