博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

win平台安装pycocotools和 crowdposetools

Posted on 2020-08-13 14:06  Alex_bd  阅读(1207)  评论(0编辑  收藏  举报

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了