Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,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_record.py:
For example, say you are training a classifier to detect basketballs, shirts, and shoes. You will replace the following code in generate_tfrecord.py:
```
# TO-DO replace this with label map
def class_text_to_int(row_label):
Expand All @@ -230,7 +230,7 @@ def class_text_to_int(row_label):
elif row_label == 'ace':
return 6
else:
None
return None
```
With this:
```
Expand All @@ -243,7 +243,7 @@ def class_text_to_int(row_label):
elif row_label == 'shoe':
return 3
else:
None
return None
```
Then, generate the TFRecord files by issuing these commands from the \object_detection folder:
```
Expand Down