From 0871ced22972b6f60188dc9207ab2b02cf4de916 Mon Sep 17 00:00:00 2001 From: Yurio Windiatmoko <33838663+Yuriowindiatmoko2401@users.noreply.github.com> Date: Mon, 6 Apr 2020 21:46:49 +0700 Subject: [PATCH 1/3] Update README.md adding text code md with ```python ``` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d902f90b..24910c26 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ This creates a train_labels.csv and test_labels.csv file in the \object_detectio Next, open the generate_tfrecord.py file in a text editor. Replace the label map starting at line 31 with your own label map, where each object is assigned an ID number. This same number assignment will be used when configuring the labelmap.pbtxt file in Step 5b. For example, say you are training a classifier to detect basketballs, shirts, and shoes. You will replace the following code in generate_tfrecord.py: -``` +```python # TO-DO replace this with label map def class_text_to_int(row_label): if row_label == 'nine': @@ -255,7 +255,7 @@ def class_text_to_int(row_label): None ``` With this: -``` +```python # TO-DO replace this with label map def class_text_to_int(row_label): if row_label == 'basketball': From 8aa61cea24f3e2c78f87ac0c1211eb5ced4cb0a7 Mon Sep 17 00:00:00 2001 From: Yurio Windiatmoko <33838663+Yuriowindiatmoko2401@users.noreply.github.com> Date: Mon, 6 Apr 2020 23:01:54 +0700 Subject: [PATCH 2/3] Update README.md update fine_tune_checkpoint in line 110 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24910c26..9ccbb190 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,7 @@ Navigate to C:\tensorflow1\models\research\object_detection\samples\configs and Make the following changes to the faster_rcnn_inception_v2_pets.config file. Note: The paths must be entered with single forward slashes (NOT backslashes), or TensorFlow will give a file path error when trying to train the model! Also, the paths must be in double quotation marks ( " ), not single quotation marks ( ' ). - Line 9. Change num_classes to the number of different objects you want the classifier to detect. For the above basketball, shirt, and shoe detector, it would be num_classes : 3 . -- Line 106. Change fine_tune_checkpoint to: +- Line 110. Change fine_tune_checkpoint to: - fine_tune_checkpoint : "C:/tensorflow1/models/research/object_detection/faster_rcnn_inception_v2_coco_2018_01_28/model.ckpt" - Lines 123 and 125. In the train_input_reader section, change input_path and label_map_path to: From 9f9081949f76cf236f122c69d5bd84fe220d2199 Mon Sep 17 00:00:00 2001 From: Yurio Windiatmoko <33838663+Yuriowindiatmoko2401@users.noreply.github.com> Date: Mon, 6 Apr 2020 23:13:47 +0700 Subject: [PATCH 3/3] Update README.md update eval_input_reader in Lines 140 and 142 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ccbb190..42d4fe02 100644 --- a/README.md +++ b/README.md @@ -345,7 +345,7 @@ Make the following changes to the faster_rcnn_inception_v2_pets.config file. Not - Line 130. Change num_examples to the number of images you have in the \images\test directory. -- Lines 135 and 137. In the eval_input_reader section, change input_path and label_map_path to: +- Lines 140 and 142. In the eval_input_reader section, change input_path and label_map_path to: - input_path : "C:/tensorflow1/models/research/object_detection/test.record" - label_map_path: "C:/tensorflow1/models/research/object_detection/training/labelmap.pbtxt"