inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[개정판] 딥러닝 컴퓨터 비전 완벽 가이드

tiny kitti 데이터로 MMDetection Train 실습 - Train 실행 후 이미지 Inference

Windows 11 local 환경에서 돌리는 분들이 만나는 error 와 debug

504

cgv03109
1

혹시 저와 같은 환경에 같은 오류를 만나실 분들을 위해 글을 남깁니다.

cuda 11.3

torch v1.11

nvidia rtx 2060 vram 6GB

1) device 못찾는 error 

sol)

from mmdet.utils import get_device
cfg.device = get_device()

2) Broken pipe Error 

sol) 

cfg.data.workers_per_gpu= 0

3) RuntimeError: Index put requires the source and destination dtypes match, got Long for the destination and int for the source.

sol) 

      data_anno = {
          'bboxes': np.array(gt_bboxes, dtype=np.float32).reshape(-1, 4),
          'labels': np.array(gt_labels, dtype=np.int64),
          'bboxes_ignore': np.array(gt_bboxes_ignore, dtype=np.float32).reshape(-1, 4),
          'labels_ignore': np.array(gt_labels_ignore, dtype=np.int64)
    }

4) RuntimeError: CUDA out of memory

sol)

cfg.data.samples_per_gpu = 1

 

 

답변 0