Skip to content

Commit c63e3b8

Browse files
committed
Fix issue for code-blocks not rendering correctly on readthedocs
1 parent 90d96f3 commit c63e3b8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/source/training.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ For lazy people like myself, who cannot be bothered to do the above, I have put
244244
- Click :download:`here <scripts/partition_dataset.py>` to download the above script and save it inside ``TensorFlow/scripts/preprocessing``.
245245
- Then, ``cd`` into ``TensorFlow/scripts/preprocessing`` and run:
246246

247-
.. code-block::
247+
.. code-block:: bash
248248
249249
python partition_dataset.py -x -i [PATH_TO_IMAGES_FOLDER] -r 0.1
250250
@@ -321,15 +321,15 @@ Here is an example script that allows us to do just that:
321321
- Click :download:`here <scripts/generate_tfrecord.py>` to download the above script and save it inside ``TensorFlow/scripts/preprocessing``.
322322
- Install the ``pandas`` package:
323323

324-
.. code-block::
324+
.. code-block:: bash
325325
326326
conda install pandas # Anaconda
327327
# or
328328
pip install pandas # pip
329329
330330
- Finally, ``cd`` into ``TensorFlow/scripts/preprocessing`` and run:
331331

332-
.. code-block::
332+
.. code-block:: bash
333333
334334
# Create train data:
335335
python generate_tfrecord.py -x [PATH_TO_IMAGES_FOLDER]/train -l [PATH_TO_ANNOTATIONS_FOLDER]/label_map.pbtxt -o [PATH_TO_ANNOTATIONS_FOLDER]/train.record
@@ -441,14 +441,14 @@ to train our model.
441441
Now, to initiate a new training job, open a new `Terminal`, ``cd`` inside the ``training_demo``
442442
folder and run the following command:
443443

444-
.. code-block::
444+
.. code-block:: bash
445445
446446
python model_main_tf2.py --model_dir=models/my_ssd_resnet50_v1_fpn --pipeline_config_path=models/my_ssd_resnet50_v1_fpn/pipeline.config
447447
448448
Once the training process has been initiated, you should see a series of print outs similar to the
449449
one below (plus/minus some warnings):
450450

451-
.. code-block::
451+
.. code-block:: bash
452452
453453
...
454454
WARNING:tensorflow:Unresolved object in checkpoint: (root).model._box_predictor._base_tower_layers_for_heads.class_predictions_with_background.4.10.gamma
@@ -529,13 +529,13 @@ The steps to run the evaluation are outlined below:
529529
- See lines 178 and 181 of the script in :ref:`config_training_pipeline_sec`.
530530
3. The third step is to actually run the evaluation. To do so, open a new `Terminal`, ``cd`` inside the ``training_demo`` folder and run the following command:
531531

532-
.. code-block::
532+
.. code-block:: bash
533533
534534
python model_main_tf2.py --model_dir=models/my_ssd_resnet50_v1_fpn --pipeline_config_path=models/my_ssd_resnet50_v1_fpn/pipeline.config --checkpoint_dir=models/my_ssd_resnet50_v1_fpn
535535
536536
Once the above is run, you should see a checkpoint similar to the one below (plus/minus some warnings):
537537

538-
.. code-block::
538+
.. code-block:: bash
539539
540540
...
541541
WARNING:tensorflow:From C:\Users\sglvladi\Anaconda3\envs\tf2\lib\site-packages\object_detection\inputs.py:79: sparse_to_dense (from tensorflow.python.ops.sparse_ops) is deprecated and will be removed in a future version.

0 commit comments

Comments
 (0)