问题描述:
github下载的mask-rcnn运行,import imgaug 和 pycocotools 问题
我先更新了setuptools, pip install --upgrade setuptools ( setuptools管理Python的第三方包,将包安装到site-package下,安装的包后缀一般为.egg,实际为ZIP格式。默认从 http://pypi.python.org/pypi 下载包,能够解决Python包的依赖关系;安装了setuptools之后即可用 easy_install 命令安装包,有多种安装方式可以选择), 升级 pip, python -m pip install --upgrade pip 未解决问题。
然后我检查了tensorflow版本和cuda版本,之前用的tensorflow==1.7,cuda==1.4,我重新 pip uninstall tensorflow==1.7, 安装了pip install tensorflow==1.4。仍然报错。
然后 参考https://www.baidu.com/link?url=tfPJ6ujtSKi23pWSn36jEipVrRs0y-CaQG0V2BZzfRSCc9j2pm6WNC03TPwXtI-PoAggxHeQZIFhB8UMCWt_xK&wd=&eqid=c7e95c5c0003e1f3000000055c39c2fd
安装了shapely库 conda install -c conda-forge shapely 就可以了。
安装pycocotools
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
报错如下:
解决方法:
首先,pip install cython
提供 Microsoft Visual C++ 14.0 (2015) 网盘下载 一键安装
https://pan.baidu.com/s/1rr-O2EoFYVKmONdcHCTjFQ
执行 python setup.py build_ext --inplace
报错如下:
参考 https://blog.csdn.net/qq_29592829/article/details/82877494
这篇文章是win7的系统的,本人win10系统,同样亲测有效,github下载coco数据集
https://github.com/cocodataset/cocoapi
解压,cd进入文件夹
执行 python setup.py build_ext --inplace 执行成功
再执行 python setup.py build_ext install
打开jupyter 运行demo就可以了