安装版本v2.0+
1. pycocotools错误
安装mmdetection forked的版本
# Install cocoapi pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools" # Install lvis-api pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=lvis"
v1.x安装
pip install git+https://github.com/waleedka/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI
或者
git clone https://github.com/pdollar/coco.git cd coco/PythonAPI make sudo make install sudo python setup.py install before doing above steps install cython