0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WindowsのWSL2でdeeplabcutのインストールする

0
Posted at

概要

この記事ではdeeplabcutのインストールに必要なパッケージのインストールするところから、実際にdeeplabcutをインストールするところまで説明します。
ディストリビューションはUbuntu20.04LTSです。あと、全ての処理(学習と推論含む)をプロセッサでやること前提なので悪しからず。

必要なパッケージのインストール

deeplabcutをインストールする前に、必要なパッケージをインストールしておきます。ただ、以前に作成した仮想環境を元にしているので、ここで記載しているものも必要かもしれません。

$ sudo apt install libsdl1.2debian ubuntu-desktop mesa-utils

deeplabcut環境の構築

Anacondaをインストールします。この記事ではAnacondaを使って、deeplabcutの環境を構築します。deeplabcutはバージョンの依存関係が強いためです(deeplabcutに限らないけど...)。

$ wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
$ sudo bash Anaconda3-2020.11-Linux-x86_64.sh
# いくつか質問があるので答えてください。
$ source ~/.bashrc
$ conda -V
conda 4.9.2
# インストールできていればバージョンが表示されます。

次にpython=3.6で仮想環境を作成して、アクティベートします。

$ conda create -n deeplabcut python=3.6
$ source activate deeplabcut

仮想環境上で、tensorflowとwxPython、 deeplabuctをインストールします。

$ pip install tensorflow==1.14
$ pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/wxPython-4.0.3-cp36-cp36m-linux_x86_64.whl
$ export LD_LIBRARY_PATH=/root/anaconda3/envs/deeplabcut/lib:$LD_LIBRARY_PATH
$ pip install deeplabcut

これでインストールは完了です!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?