LoginSignup
5
12

More than 3 years have passed since last update.

labelImgが動かない場合の対処法

Last updated at Posted at 2019-11-22

Screenshot from 2019-11-22 17_06_59.png

環境

Ubuntu-14.04

labelImgの動かし方

labelImgは深層学習を用いた物体検出のアノテーションツールとして有名です.

しかしこちらのlabelImgの公式Github
https://github.com/tzutalin/labelImg
のREADME通りやるとpyqt5まわりでエラーが多発して動かないことが多いです.

LinuxユーザまたはWindowsユーザの場合

LinuxユーザまたはWindowsユーザであれば,
https://github.com/tzutalin/labelImg
もうこちらは使いません.

代わりに,
https://tzutalin.github.io/labelImg/

Linux_v1.4.3(投稿時,ページ一番下の最新バージョン)

をダウンロードして,
展開先のディレクトリにターミナルで移動して,

./labelimg

するだけ.
これで起動できます.

Macユーザの場合

Macユーザであれば,
https://github.com/tzutalin/labelImg
こちらのリポジトリをクローンしてcdしたあとに,以下を行い,アプリを作成します.

brew install python3
pip install pipenv
pipenv --three
pipenv shell
pip install pyqt5 lxml

make qt5py3
rm -rf build dist
python setup.py py2app
cp -rf dist/labelImg.app /Applications
exit

これでおしまい.
あとはアプリを叩くだけ.

P.S.

機械学習,自動運転などをメインに(たまにそれ以外も)発信しているのでぜひ twitterのフォローおねがいします.

5
12
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
5
12