Data & ML & AI/Vision Model

[DeepLabCut] DeepLabCut 설치하기

뇌님 2022. 9. 6. 15:45
반응형

 

 

GitHub - DeepLabCut/DeepLabCut: Official implementation of DeepLabCut: Markerless pose estimation of user-defined features with

Official implementation of DeepLabCut: Markerless pose estimation of user-defined features with deep learning for all animals incl. humans - GitHub - DeepLabCut/DeepLabCut: Official implementation ...

github.com

 

0. 사전절차

  • DeepLabCut은 Anaconda를 사용하는 것을 권장하고 있습니다.
  • CPU에서도 활용은 가능하지만, GPU를 권장하고 있습니다.

 

1. 가상환경 설치하기

1) Anaconda 가상환경 파일 다운로드

DEEPLABCUT.yaml을 설치합니다.

만약 위의 다운로드 링크가 먹히지 않는다면, 이 페이지 하단에 "Download conda file"이 있습니다.

 

2) 다운받은 파일로 가상환경 설치하기

DEEPLABCUT.yaml 파일이 있는 위치에서 cmd 혹은 Terminal을 실행해 다음의 명령을 실행시켜줍니다.

(상관은 없지만, 관리의 편의를 위해 yaml 파일을 프로젝트 폴더로 미리 옮겨 놓는 것도 좋을 것 같습니다.)

conda env create -f DEEPLABCUT.yaml

설치가 끝났다면 설치한 가상환경을 activate 할 수 있습니다.

conda activate DEEPLABCUT

DeepLabCut에서 필요한 라이브러리들을 모두 넣어줬기에 아주 편하게 사용할 수 있습니다.

 

3) 정상설치 여부 확인

(DEEPLABCUT) $ python

>>> import deeplabcut
Loading DLC 2.2.2...

 

정상적으로 설치 되었습니다!

 

(DEEPLABCUT) $ python -m deeplabcut

# 윈도우, ubuntu : python -m deeplabcut
# mac : pythonw -m deeplabcut

GUI까지 정상적으로 작동합니다!

 

반응형