mmdetection安装
Ubuntu 18.04
- 安装依赖:python3.8+cuda11.1+torch1.7
- 安装mmcv:进入https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html,根据python,cuda,torch等版本选择合适的mmcv-full版本,如./cu110/torch1.7.0/mmcv_full-1.2.5-cp38-cp38-manylinux1_x86_64.whl下载安装
pip install mmcv_full-1.2.5-cp38-cp38-manylinux1_x86_64.whl
删除 whl文件:rm mmcv_full-1.2.5-cp38-cp38-manylinux1_x86_64.whl - 安装mmdetection:git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements/build.txt
pip install -v -e . # or “python setup.py develop” - 测试:from mmdet.apis import init_detector
参考:http://www.feifeizaici.xyz/2020/07/install_mmdetection/
https://blog.csdn.net/weicao1990/article/details/92837292