1. 安装winows版本的pycocotools工具
COCO 地址: https://github.com/cocodataset/cocoapi
大佬改写支持 Windows 的 COCO 地址:https://github.com/philferriere/cocoapi
pip 安装: pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
https://github.com/philferriere/cocoapi下载源码,并进行解压。以管理员身份打开 CMD 终端,并切换到 cocoapi\PythonAPI目录。运行以下指令
# install pycocotools locally
python setup.py build_ext --inplace
# install pycocotools to the Python site-packages
python setup.py build_ext install
注意:Microsoft Visual C++ 14.0 is required
No module named ‘pycocotools._mask’: 工程下的pycocotools文件重名
2. 配置pycococreator工具
Github: