• 카테고리

    질문 & 답변
  • 세부 분야

    컴퓨터 비전

  • 해결 여부

    미해결

mm detect 설치관련입니다.

22.04.04 18:45 작성 조회수 182

0

선생님 안녕하십니까. 먼저 좋은 강의 감사드립니다.

제가 ubuntu 18을 사용하고 있는 로컬 pc에서 mask r cnn을 사용하기 위해 mm detection을 설치하고 있습니다.

가상환경을 만들어서 tensorflow 2.8, python 3.10, pytorch 1.11 , (cuda는 10.2입니다)를 사용하고 있습니다.

################3 아래와 같이 jupyter notebook으로
수업 내용과 이전에 질문에 답해주신 내용을 참조해서 관련 프로그램을 설치하고 있습니다.
 
!pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.11.0/index.html !git clone https://github.com/open-mmlab/mmdetection.git !cd mmdetection !git clone https://github.com/open-mmlab/mmcv
!cd mmdetection; python setup.py install
!pip install -r mmdetection/requirements/build.txt
 
 
!pip install -v -e
위 명령어를 실행시,
아래와 같은 메시지가 나오고,
-e option requires 1 argument
 
 ################################################
from mmdet.apis import init_detector, inference_detector
import mmcv
위 코드를 실행하면, (import mmcv는 정상적으로 실행이 됩니다.)
아래와 같은 오류 메시지가 발생합니다.
관련해서 답을 주시면 감사드리겠습니다.
 
감사합니다.
 
 
 
 
 
 

답변 1

답변을 작성해보세요.

0

안녕하십니까, 

뭔가 mmcv가 잘못 설치 된 것 같습니다. 

mmcv를 uninstall 하고 이번엔 pip install mmcv-full로 설치해 보시기 바랍니다. 

pip unistall mmcv 

pip install mmcv-full

가능하시면 가상환경은 python 3.8로 설정하고 함 해보시지요.