강의

멘토링

커뮤니티

Inflearn Community Q&A

ii3's profile image
ii3

asked

[Revised Edition] Deep Learning Computer Vision Complete Guide

MMDetection 관련 에러

Written on

·

547

0

안녕하세요, 좋은강의 감사드립니다.

코랩에서 실습을 해보고 있는데 2018 nucleus 강좌부분에서 MMDetection 관련 에러가 있습니다.

from mmdet.apis import init_detector, inference_detector

에서 아래와 같이 에러가 나는데요, 혹시 어떻게 해결해야 할까요?

python컴퓨터-비전딥러닝머신러닝 배워볼래요? kerastensorflow

Answer 3

1

dooleyz3525님의 프로필 이미지
dooleyz3525
Instructor

nucleus 데이터 포맷에 mmdetection에서 안돌아가는 일부 데이터가 있습니다. 

이걸 걸러내는 강의 영상이 "Kaggle Nucleus Segmentation Challenge 실습 - COCO 포맷으로 Annotation 변환하기"

한 10분 쯤부터 보시면 어떻게 제거 하는지 나와 있습니다. 

제거하고 다시 train_detector()를 수행해 주십시요. nucleus 실습은 여러가지 조심해야할 부분이 있어서 제가 강의에서 알려드리고 있으니, 실습 영상을 이어서 봐주시길 바랍니다. 

ii님의 프로필 이미지
ii
Questioner

해당 영상 참고하여 실행하니 잘 돌아가네요. 감사합니다. ^^

0

ii님의 프로필 이미지
ii
Questioner

아 죄송합니다 이번에는 다른 셀에서 다른 에러가 발생이 *.*

import os.path as osp
mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
# epochs는 config의 runner 파라미터로 지정됨. 기본 12회
train_detector(model, datasets_train, cfg, distributed=False, validate=True)

 

혹시 버전이 달라져서 input 형태가 바뀌어야 하는걸까요?

0

dooleyz3525님의 프로필 이미지
dooleyz3525
Instructor

안녕하십니까, 

코랩에서 pytorch가 1.9에서 1.10으로 upgrade 되면서 발생하는 문제 인것 같습니다. 

첫번째 설치 cell에서 아래와 같이 torch url을 torch.1.9.0에서 torch1.10.0 으로 변경해 주십시요. 

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

 
감사합니다.
ii님의 프로필 이미지
ii
Questioner

감사합니다! ^^

ii3's profile image
ii3

asked

Ask a question