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