No module named 'detectron2'

boingboing·2023년 10월 25일
0

Colab에서

segmentation 프로젝트 수행 차 detectron2를 설치 하는데 ...!


# detectron 오리지널 github Clone 

!git clone https://github.com/facebookresearch/detectron2 detectron2_repo

!pip install -e detectron2_repo

git clone 한 후 detectron2가 import가 안 되는 문제 발생..

-> GPT에게 문의하니 다양한 문제 이유를 말해줌.

CASE 1

->

pip install 'git+https://github.com/facebookresearch/detectron2.git@5aeb252b194b93dc2879b4ac34bc51a31b5aee13'
  • 공식 github 주소로 받을 수 있는 detectron2의 마지막 커밋에 오류가 있어서 이전 버전을 쓰라고 해 줌.
  • 이 ㅅㄲ들아!

CASE 2

-> 이 중 제일 간단한 런타임 Restart를 해봤는데, 이게 맞았음!

0개의 댓글