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 1 year has passed since last update.

Dockerを用いてLabelImgを使用する on Ubuntu

Posted at

やり方

下記の内容を記述したDockerfileを用意します。

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y pyqt5-dev-tools python3-pip git
RUN git clone https://github.com/tzutalin/labelImg.git && \
    cd labelImg && \
    pip3 install lxml && \
    make qt5py3
CMD ["python3","labelImg/labelImg.py"]

イメージをビルドします

$ docker build -t labelimg .

GUI表示ができるように設定します

$ xhost +

コンテナを作成・実行します

$ docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v <共有元パス>:<共有先パス> labelimg

ウィンドウが表示されます。
example.jpg

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?