Skip to content

Commit 1cb9a42

Browse files
Update README.md
1 parent 8e2e6b9 commit 1cb9a42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,21 +293,21 @@ Finally, the object detection training pipeline must be configured. It defines w
293293

294294
Navigate to C:\tensorflow1\models\research\object_detection\samples\configs and copy the faster_rcnn_inception_v2_pets.config file into the \object_detection\training directory. Then, open the file with a text editor. There are several changes to make to the .config file, mainly changing the number of classes and examples, and adding the file paths to the training data.
295295

296-
Make the following changes to the faster_rcnn_inception_v2_pets.config file. Note: The path must be entered with two forward slashes after C: and single forward slashes elsewhere, or TensorFlow will give a file path error when trying to train the model!
296+
Make the following changes to the faster_rcnn_inception_v2_pets.config file. Note: The path 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 path must be in double quotation marks ( " ), not single quotation marks ( ' ).
297297

298298
- 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 .
299299
- Line 110. Change fine_tune_checkpoint to:
300-
- fine_tune_checkpoint : “C://tensorflow1/models/research/object_detection/faster_rcnn_inception_v2_coco_2018_01_28/model.ckpt"
300+
- fine_tune_checkpoint : “C:/tensorflow1/models/research/object_detection/faster_rcnn_inception_v2_coco_2018_01_28/model.ckpt"
301301

302302
- Lines 126 and 128. In the train_input_reader section, change input_path and label_map_path to:
303-
- input_path : "C://tensorflow1/models/research/object_detection/train.record"
304-
- label_map_path: "C://tensorflow1/models/research/object_detection/training/labelmap.pbtxt"
303+
- input_path : "C:/tensorflow1/models/research/object_detection/train.record"
304+
- label_map_path: "C:/tensorflow1/models/research/object_detection/training/labelmap.pbtxt"
305305

306306
- Line 132. Change num_examples to the number of images you have in the \images\test directory.
307307

308308
- Lines 140 and 142. In the eval_input_reader section, change input_path and label_map_path to:
309-
- input_path : "C://tensorflow1/models/research/object_detection/test.record"
310-
- label_map_path: "C://tensorflow1/models/research/object_detection/training/labelmap.pbtxt"
309+
- input_path : "C:/tensorflow1/models/research/object_detection/test.record"
310+
- label_map_path: "C:/tensorflow1/models/research/object_detection/training/labelmap.pbtxt"
311311

312312
Save the file after the changes have been made. That’s it! The training job is all configured and ready to go!
313313

0 commit comments

Comments
 (0)