This commit is contained in:
tzutalin 2019-05-25 14:38:32 -07:00
parent fd79454dc9
commit add1d9972c
2 changed files with 17 additions and 16 deletions

View File

@ -48,7 +48,7 @@ Ubuntu Linux
^^^^^^^^^^^^ ^^^^^^^^^^^^
Python 2 + Qt4 Python 2 + Qt4
.. code:: .. code:: shell
sudo apt-get install pyqt4-dev-tools sudo apt-get install pyqt4-dev-tools
sudo pip install lxml sudo pip install lxml
@ -58,7 +58,7 @@ Python 2 + Qt4
Python 3 + Qt5 (Recommanded) Python 3 + Qt5 (Recommanded)
.. code:: .. code:: shell
sudo apt-get install pyqt5-dev-tools sudo apt-get install pyqt5-dev-tools
sudo pip3 install -r requirements/requirements-linux-python3.txt sudo pip3 install -r requirements/requirements-linux-python3.txt
@ -67,10 +67,10 @@ Python 3 + Qt5 (Recommanded)
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
macOS macOS
^^^^ ^^^^^
Python 2 + Qt4 Python 2 + Qt4
.. code:: .. code:: shell
brew install qt qt4 brew install qt qt4
brew install libxml2 brew install libxml2
@ -80,7 +80,7 @@ Python 2 + Qt4
Python 3 + Qt5 (Recommanded) Python 3 + Qt5 (Recommanded)
.. code:: .. code:: shell
brew install qt # Install qt-5.x.x by Homebrew brew install qt # Install qt-5.x.x by Homebrew
brew install libxml2 brew install libxml2
@ -99,7 +99,7 @@ Python 3 + Qt5 (Recommanded)
This can avoid a lot of the QT / Python version issues, and gives you a nice .app file with a new SVG Icon This can avoid a lot of the QT / Python version issues, and gives you a nice .app file with a new SVG Icon
in your /Applications folder. You can consider this script: build-tools/build-for-macos.sh in your /Applications folder. You can consider this script: build-tools/build-for-macos.sh
.. code:: .. code:: shell
brew install python3 brew install python3
pip install pipenv pip install pipenv
@ -122,20 +122,20 @@ and `install lxml <http://lxml.de/installation.html>`__.
Open cmd and go to the `labelImg <#labelimg>`__ directory Open cmd and go to the `labelImg <#labelimg>`__ directory
.. code:: .. code:: shell
pyrcc4 -o resources.py resources.qrc pyrcc4 -o resources.py resources.qrc
python labelImg.py python labelImg.py
python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
Windows + Anaconda Windows + Anaconda
^^^^^^^ ^^^^^^^^^^^^^^^^^^
Download and install `Anaconda <https://www.anaconda.com/download/#download>`__ (Python 3+) Download and install `Anaconda <https://www.anaconda.com/download/#download>`__ (Python 3+)
Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory
.. code:: .. code:: shell
conda install pyqt=5 conda install pyqt=5
pyrcc5 -o resources.py resources.qrc pyrcc5 -o resources.py resources.qrc
@ -144,7 +144,7 @@ Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory
Get from PyPI Get from PyPI
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
.. code:: .. code:: shell
pip install labelImg pip install labelImg
labelImg labelImg
@ -154,7 +154,7 @@ I tested pip on Ubuntu 14.04 and 16.04. However, I didn't test pip on macOS and
Use Docker Use Docker
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
.. code:: .. code:: shell
docker run -it \ docker run -it \
--user $(id -u) \ --user $(id -u) \
@ -177,7 +177,7 @@ Usage
----- -----
Steps (PascalVOC) Steps (PascalVOC)
~~~~~ ~~~~~~~~~~~~~~~~~
1. Build and launch using the instructions above. 1. Build and launch using the instructions above.
2. Click 'Change default saved annotation folder' in Menu/File 2. Click 'Change default saved annotation folder' in Menu/File
@ -192,7 +192,7 @@ The annotation will be saved to the folder you specify.
You can refer to the below hotkeys to speed up your workflow. You can refer to the below hotkeys to speed up your workflow.
Steps (YOLO) Steps (YOLO)
~~~~~ ~~~~~~~~~~~~
1. In ``data/predefined_classes.txt`` define the list of classes that will be used for your training. 1. In ``data/predefined_classes.txt`` define the list of classes that will be used for your training.
@ -278,3 +278,4 @@ Related
3. `Generating the PASCAL VOC TFRecord files <https://github.com/tensorflow/models/blob/4f32535fe7040bb1e429ad0e3c948a492a89482d/research/object_detection/g3doc/preparing_inputs.md#generating-the-pascal-voc-tfrecord-files>`__ 3. `Generating the PASCAL VOC TFRecord files <https://github.com/tensorflow/models/blob/4f32535fe7040bb1e429ad0e3c948a492a89482d/research/object_detection/g3doc/preparing_inputs.md#generating-the-pascal-voc-tfrecord-files>`__
4. `App Icon based on Icon by Nick Roach (GPL)` <https://www.elegantthemes.com/> <https://www.iconfinder.com/icons/1054978/shop_tag_icon> __ 4. `App Icon based on Icon by Nick Roach (GPL)` <https://www.elegantthemes.com/> <https://www.iconfinder.com/icons/1054978/shop_tag_icon> __

View File

@ -3,7 +3,7 @@
brew install python@2 brew install python@2
pip install --upgrade virtualenv pip install --upgrade virtualenv
# clonde labelimg source # clone labelimg source
rm -rf /tmp/labelImgSetup rm -rf /tmp/labelImgSetup
mkdir /tmp/labelImgSetup mkdir /tmp/labelImgSetup
cd /tmp/labelImgSetup cd /tmp/labelImgSetup