You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for/f %iin ('dir /b object_detection\protos\*.proto') do protoc object_detection\protos\%i --python_out=.
@@ -386,7 +386,7 @@ Install the Object Detection API
386
386
********************************
387
387
Installation of the Object Detection API is achieved by installing the ``object_detection`` package. This is done by running the following commands from within ``Tensorflow\models\research``:
388
388
389
-
.. code-block::
389
+
.. code-block:: bash
390
390
391
391
# From within TensorFlow/models/research/
392
392
cp object_detection/packages/tf2/setup.py .
@@ -396,7 +396,7 @@ Installation of the Object Detection API is achieved by installing the ``object_
396
396
397
397
During the above installation, you may observe the following error:
Once the above is run, allow some time for the test to complete and once done you should observe a
438
438
printout similar to the one below:
439
439
440
-
.. code-block::
440
+
.. code-block:: bash
441
441
442
442
...
443
443
[ OK ] ModelBuilderTF2Test.test_create_ssd_models_from_config
@@ -471,121 +471,4 @@ If you want to play around with some examples to see how this can be done, now w
471
471
time to have a look at the :ref:`examples` section.
472
472
473
473
474
-
.. _labelImg_install:
475
-
476
-
LabelImg Installation
477
-
---------------------
478
-
479
-
There exist several ways to install ``labelImg``. Below are 3 of the most common.
480
-
481
-
Get from PyPI (Recommended)
482
-
***************************
483
-
1. Open a new `Terminal` window and activate the `tensorflow_gpu` environment (if you have not done so already)
484
-
2. Run the following command to install ``labelImg``:
485
-
486
-
.. code-block:: bash
487
-
488
-
pip install labelImg
489
-
490
-
3. ``labelImg`` can then be run as follows:
491
-
492
-
.. code-block:: bash
493
-
494
-
labelImg
495
-
# or
496
-
labelImg [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
497
-
498
-
Use precompiled binaries (Easy)
499
-
*******************************
500
-
Precompiled binaries for both Windows and Linux can be found `here <http://tzutalin.github.io/labelImg/>`_ .
501
-
502
-
Installation is the done in three simple steps:
503
-
504
-
1. Inside you ``TensorFlow`` folder, create a new directory, name it ``addons`` and then ``cd`` into it.
505
-
506
-
2. Download the latest binary for your OS from `here <http://tzutalin.github.io/labelImg/>`_. and extract its contents under ``Tensorflow/addons/labelImg``.
507
-
508
-
3. You should now have a single folder named ``addons/labelImg`` under your ``TensorFlow`` folder, which contains another 4 folders as such:
509
-
510
-
.. code-block:: bash
511
-
512
-
TensorFlow/
513
-
├─ addons/
514
-
│ └─ labelImg/
515
-
└─ models/
516
-
├─ community/
517
-
├─ official/
518
-
├─ orbit/
519
-
├─ research/
520
-
└─ ...
521
-
522
-
4. ``labelImg`` can then be run as follows:
523
-
524
-
.. code-block:: bash
525
-
526
-
# From within Tensorflow/addons/labelImg
527
-
labelImg
528
-
# or
529
-
labelImg [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
530
-
531
-
Build from source (Hard)
532
-
************************
533
-
The steps for installing from source follow below.
534
-
535
-
**1. Download labelImg**
536
-
537
-
- Inside you ``TensorFlow`` folder, create a new directory, name it ``addons`` and then ``cd`` into it.
538
-
- To download the package you can either use `Git <https://git-scm.com/downloads>`_ to clone the `labelImg repo <https://github.com/tzutalin/labelImg>`_ inside the ``TensorFlow\addons`` folder, or you can simply download it as a `ZIP <https://github.com/tzutalin/labelImg/archive/master.zip>`_ and extract it's contents inside the ``TensorFlow\addons`` folder. To keep things consistent, in the latter case you will have to rename the extracted folder ``labelImg-master`` to ``labelImg``. [#]_
539
-
- You should now have a single folder named ``addons\labelImg`` under your ``TensorFlow`` folder, which contains another 4 folders as such:
540
-
541
-
.. code-block:: bash
542
-
543
-
TensorFlow/
544
-
├─ addons
545
-
│ └─ labelImg/
546
-
└─ models/
547
-
├─ community/
548
-
├─ official/
549
-
├─ orbit/
550
-
├─ research/
551
-
└─ ...
552
-
553
-
.. [#] The latest repo commit when writing this tutorial is `8d1bd68 <https://github.com/tzutalin/labelImg/commit/8d1bd68ab66e8c311f2f45154729bba301a81f0b>`_.
554
-
555
-
**2. Install dependencies and compiling package**
556
-
557
-
- Open a new `Terminal` window and activate the `tensorflow_gpu` environment (if you have not done so already)
558
-
- ``cd`` into ``TensorFlow/addons/labelImg`` and run the following commands:
0 commit comments