AI/PoseEstimation
[DeepLabCut] 설치 및 실행
NAEMO
2021. 8. 3. 12:23
728x90
0. 설치 환경: Ubuntu 18.04
* Windows, Mac도 동일하게 동작함
다만 설치 방법이 상이할 수 있습니다.
1. 기본 환경 설치
A. gcc
sudo apt-get install gcc
B. wxPython
* 미리 설치하면 나중에 충돌이 안남
sudo pip install wxPython<4.1.0
C. CUDA11 및 cuda-toolkit
* Nvidia 그래픽카드를 사용하지 않으면 생략
* Mac은 GPU 지원안하므로 생략
sudo apt install nvidia-cuda-toolkit gcc-7
* 설치확인
nvidia-smi
nvcc-V
2. DLC 설치
A. Anaconda 설치
B. DLC Repository 복제
git clone https://github.com/DeepLabCut/DeepLabCut.git
C. DLC 환경 설치
cd [deeplabcut directory]/conda-environments
conda env create -f DEEPLABCUT.yaml
cd ..
D. DEEPLABCUT 활성화
conda activate DEEPLABCUT
E. DLC 최신버전 설치
pip install --upgrade deeplabcut
F. DLC 실행 (GUI)
python -m deeplabcut
728x90