• 카테고리

    질문 & 답변
  • 세부 분야

    컴퓨터 비전

  • 해결 여부

    미해결

MMDETECTION 설치 및 MMCV 설치 수행 문의

21.12.27 14:16 작성 조회수 3.89k

0

안녕하세요 이번 강의를 듣게 된 이오규입니다

코랩을 통해 교육을 듣고 있습니다

혹시 ubuntu 환경에서 MMDETECTION  및 MMCV를 설치 후 학습에 이용을 하려고 합니다

설치 관련해서 도움을 받거나 참조 url주소가 있으시면 답변 부탁드립니다

답변 1

답변을 작성해보세요.

0

안녕하십니까, 

Ubuntu에서 mmcv와 mmdetection 설치가 특별히 다르지 않습니다. 

https://mmdetection.readthedocs.io/en/v1.2.0/INSTALL.html

를 참조하셔서

1. conda, pytorch와 필요한 library를 먼저 설치하시고, 

2. https://github.com/open-mmlab/mmcv에서 mmcv 설치하신 다음에 

pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html

3. https://mmdetection.readthedocs.io/en/v1.2.0/INSTALL.html 대로 mmdetection git clone후에 설치 하시면 될 것 같습니다. 

정리하면 아래와 같을것 같습니다. 

conda create -n open-mmlab python=3.7 -y

conda activate open-mmlab

 

conda install -c pytorch pytorch torchvision -y

 

#만약 cuda가 11.1 이고 pytorch가 1.10.0 이면

pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cuda111/torch1.10.0/index.html

 

git clone https://github.com/open-mmlab/mmdetection.git

cd mmdetection

pip install -r requirements/build.txt

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

pip install -v -e .

이오규님의 프로필

이오규

2022.01.04

좋은 정보 감사합니다.

관련 정보 통해서 설치하였습니다.