mmdetection安装问题

安装版本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

 

posted @ 2020-09-11 19:57  BlueOceans  阅读(595)  评论(0编辑  收藏  举报