detectron22 [Mac] Detectron2 예제 실습하기 - Face detection 목적face detection 사이드 프로젝트 모델로 detectron2를 사용하게 되었다. detectron2에 대한 예제를 가지고 모델링, 작업 도중에 발생했던 오류 및 진행과정을 상세히 설명하고자 한다. 레퍼런스https://github.com/curiousily/Getting-Things-Done-with-Pytorch/blob/master/02.face-detection-with-detectron2.ipynb Mac 사용시 주의 사항detectron2는 Cuda로 구현한 모델. 하지만 m1, m2는 Nvidia GPU를 제공하지 않기 때문에 로컬에서 Cuda를 사용할 수 없다. 해결방법으로는 ①device를 mps로 변경 (했지만 아래 내용으로 오류 발생) ②device를 cpu로.. 2024. 4. 22. [Mac] Detectron2 - AssertionError: Torch not compiled with CUDA enabled 목적 detectron2 데이터셋 설정 작업 중 torch 관련 오류가 났다. 해당 오류를 해결하기 위한 삽질 내용과 해결 방법을 포스팅하고자 한다. 오류 내용 AssertionError: Torch not compiled with CUDA enabled 오류 발생 사유 M2 Mac에는 Nvidia GPU 기능인 Cuda가 없어서 사용할 수 없었다. 삽질 Mac의 오류인 것을 인지하지 못하고 torch 재설치를 해보기도 했다. torch 버전 확인 python import torch print(torch.__version__) torch & torchvision 삭제하기 pip uninstall torch torchvision torch, torchivision, torchaudio 호환되는 버전으로 재.. 2024. 4. 16. 이전 1 다음