Shangtang mmdetection is installed under ubuntu

There is an official installation method on github, the link is as follows:

https://github.com/open-mmlab/mmdetection/blob/master/docs/INSTALL.md

among them

pip install "git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI"

There is a problem installing cocoapi in this step. One is that github download may be too slow. Secondly, the setup.py needed for pip installation is not found in the original path. The file is in the "PythonAPI" in the original path.

The solution I used is as follows:

1. Download the source code (a mirror image was created on gitee for speed)

conda activate mmdetection #激活环境
git clone -q https://gitee.com/kezis/cocoapi_python_v2 /tmp/pip-temp #clone源码到任意文件夹
cd /tmp/pip-temp/PythonAPI

2. Install via setup.py

python setup.py build
python setup.py install

 

Released eight original articles · won praise 1 · views 3255

Guess you like

Origin blog.csdn.net/sinat_30165411/article/details/105646444