Colab安装mmdetection

# 运行环境配置
import os
os.chdir("/content/drive/MyDrive/Colab")
!git clone https://github.com/open-mmlab/mmdetection.git
!pip install git+https://github.com/cocodataset/cocoapi.git#"egg=pycocotools&subdirectory=PythonAPI"
# 安装必要包
!pip install mmcv-full==1.3.17 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.10.0/index.html
os.chdir("/content/drive/MyDrive/Colab/mmdetection")
!pip install -r requirements/build.txt
!pip install -v -e .  # or "python setup.py develop"
posted @ 2022-05-10 12:55  梁哲  阅读(118)  评论(0)    收藏  举报