mm_faster_rcnn_train_coco_bccd 학습시 수행이 안됩니다
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[20], line 4
2 mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
3 # epochs는 config의 runner 파라미터로 지정됨. 기본 12회
----> 4 train_detector(model, datasets, cfg, distributed=False, validate=True)
File /opt/conda/lib/python3.10/site-packages/mmdet-2.28.2-py3.10.egg/mmdet/apis/train.py:163, in train_detector(model, dataset, cfg, distributed, validate, timestamp, meta)
156 model = build_ddp(
157 model,
158 cfg.device,
159 device_ids=[int(os.environ['LOCAL_RANK'])],
160 broadcast_buffers=False,
161 find_unused_parameters=find_unused_parameters)
162 else:
--> 163 model = build_dp(model, cfg.device, device_ids=cfg.gpu_ids)
165 # build optimizer
166 auto_scale_lr(cfg, distributed, logger)
File /opt/conda/lib/python3.10/site-packages/mmcv/utils/config.py:524, in Config.__getattr__(self, name)
523 def __getattr__(self, name):
--> 524 return getattr(self._cfg_dict, name)
File /opt/conda/lib/python3.10/site-packages/mmcv/utils/config.py:52, in ConfigDict.__getattr__(self, name)
50 else:
51 return value
---> 52 raise ex
AttributeError: 'ConfigDict' object has no attribute 'device'^캐글
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-25-adb1a52111f0> in <cell line: 4>()
2 mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
3 # epochs는 config의 runner 파라미터로 지정됨. 기본 12회
----> 4 train_detector(model, datasets, cfg, distributed=False, validate=True)
2 frames
/usr/local/lib/python3.10/dist-packages/mmcv/utils/config.py in __getattr__(self, name)
50 else:
51 return value
---> 52 raise ex
53
54
AttributeError: 'ConfigDict' object has no attribute 'device'^코랩
안녕하세요 좋은 강의 감사드립니다.
import os.path as osp
mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
# epochs는 config의 runner 파라미터로 지정됨. 기본 12회
train_detector(model, datasets, cfg, distributed=False, validate=True)
이 셀이 실행시 이러한 오류가 뜨는데 이유를 모르겠습니다
답변 1
0
안녕하십니까,
실습코드를 그대로 적용하시면 잘 됩니다. 실습코드를 다시 한번 다운로드 받으시거나, 아님
cfg 설정하실 때 아래를 추가해 주십시요.
cfg.device='cuda'
ConfigDict' object has no attribute 'device 오류 발생시 반드시 설정이 필요합니다.
감사합니다.
0
아 train_detector의 매개변수로 들어가는게 아니라 cfg 설정에서 추가해줘야 하는거군요 감사합니다. 해결되었습니다.
머신러닝 강의부터 딥러닝 컴퓨터 비전까지 많은 도움 받고 있습니다. 감사합니다.
강의 환경설정 질문
0
43
2
Custom Dataset에서의 polygon 정보 관련
0
86
3
cvat.ai 보안 수준이 궁금합니다
0
81
2
캐클 nucleus 챌린지 runpod 실습 코드 에러 질문드립니다.
0
98
3
추론 결과의 Precision(또는 mAP) 평가 방법
0
86
2
mmdetection mask rcnn inferenct 실습 시 runpod 템플릿 관해서 질문드립니다.
0
61
2
runpod에서 google drive 연결 시 오류 발생
0
110
2
로드맵 선택
0
68
1
mmcv
0
60
2
Anchor box의 Positive 처리 위치
0
63
2
해당 강의 runpod 적용 후 에러 제보드립니다
0
87
2
run pod credit 관련 제보
0
101
2
mmdetection 2.x과 3.x 호환 관련 표기
0
79
2
mm_faster_rcnn_train_kitti.ipynb 실행 오류
0
101
3
질문 드립니다.
0
83
3
mm_faster_rcnn_train_coco_bccd 실행 오류 질문드립니다.
0
81
1
강사님께 수정을 제안드리고 싶은 것이 있습니다.
0
96
1
google automl efficientdet 다운로드 및 설치 오류
0
76
1
이상 탐지에 사용할 비전 기술 조언 부탁드립니다.
0
104
2
OpenCV 관련 질문드립니다.
0
74
2
mmcv 설치관련해서 문의드려요
0
335
3
강의 구성 관련해서 질문이 있습니다
1
139
2
모델 변환 성능 질문드립니다.
0
123
1
NMS 로직 문의 드려요
0
116
2





