MMdetection을 사용하기 위한 초기 환경설정

 

1. 상환경 구

conda create -n mmdetection python=3.11 # ( 3.7 이상 버전이면 ok)

 

2. Pytorch 설

conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

 

3. MMCV-Full 설


자신이 설한 cuda 버전으로 설합니다. 우리는 위에 11.7 했으므로 11.7

pip install mmcv==2.0.0 -f https://download.openmmlab.com/mmcv/dist/cu117/torch2.0/index.html

가이드 주소 : https://mmcv.readthedocs.io/en/latest/get_started/installation.html#install-mmcv

 

 

4. Github 에서 mmdetection zip 다로드 후 파이참 세팅 및 위에서 만상환경으로 인터프린 트 설정

https://github.com/open-mmlab/mmdetection/archive/refs/heads/main.zip

or 

git clone https://github.com/open-mmlab/mmdetection.git

 

5. install MMDetection (수동 설치)   / cd명령어로 저장한 파일로 경로이동

pip install -r requirements/build.txt

pip install -v -e .

pip mmdet # 설치가 잘 됐는지 확인사살

'ComputerVision > [ObjectDetection]' 카테고리의 다른 글

[ObjectDetection] Keypoint 탐지  (0) 2023.08.01

+ Recent posts