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
.. code::
.. code:: shell
sudo apt-get install pyqt4-dev-tools
sudo pip install lxml
@ -58,7 +58,7 @@ Python 2 + Qt4
Python 3 + Qt5 (Recommanded)
.. code::
.. code:: shell
sudo apt-get install pyqt5-dev-tools
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]
macOS
^^^^
^^^^^
Python 2 + Qt4
.. code::
.. code:: shell
brew install qt qt4
brew install libxml2
@ -80,7 +80,7 @@ Python 2 + Qt4
Python 3 + Qt5 (Recommanded)
.. code::
.. code:: shell
brew install qt # Install qt-5.x.x by Homebrew
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
in your /Applications folder. You can consider this script: build-tools/build-for-macos.sh
.. code::
.. code:: shell
brew install python3
pip install pipenv
@ -122,20 +122,20 @@ and `install lxml <http://lxml.de/installation.html>`__.
Open cmd and go to the `labelImg <#labelimg>`__ directory
.. code::
.. code:: shell
pyrcc4 -o resources.py resources.qrc
python labelImg.py
python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
Windows + Anaconda
^^^^^^^
^^^^^^^^^^^^^^^^^^
Download and install `Anaconda <https://www.anaconda.com/download/#download>`__ (Python 3+)
Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory
.. code::
.. code:: shell
conda install pyqt=5
pyrcc5 -o resources.py resources.qrc
@ -144,7 +144,7 @@ Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory
Get from PyPI
~~~~~~~~~~~~~~~~~
.. code::
.. code:: shell
pip install 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
~~~~~~~~~~~~~~~~~
.. code::
.. code:: shell
docker run -it \
--user $(id -u) \
@ -177,7 +177,7 @@ Usage
-----
Steps (PascalVOC)
~~~~~
~~~~~~~~~~~~~~~~~
1. Build and launch using the instructions above.
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.
Steps (YOLO)
~~~~~
~~~~~~~~~~~~
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>`__
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

@ -1,9 +1,9 @@
#!/bin/sh
brew install python@2
pip install --upgrade virtualenv
pip install --upgrade virtualenv
# clonde labelimg source
# clone labelimg source
rm -rf /tmp/labelImgSetup
mkdir /tmp/labelImgSetup
cd /tmp/labelImgSetup
@ -27,4 +27,4 @@ mv "/tmp/labelImgSetup/labelImg-master/dist/labelImg.app" /Applications
deactivate
cd ../
rm -rf /tmp/labelImgSetup
echo 'DONE'
echo 'DONE'