Skip to content

Commit 0825153

Browse files
Merge pull request EdjeElectronics#97 from azylinski/patch-1
Update README.md
2 parents 0d3bcfa + 48be219 commit 0825153

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ This creates a train_labels.csv and test_labels.csv file in the \object_detectio
213213

214214
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.
215215

216-
For example, say you are training a classifier to detect basketballs, shirts, and shoes. You will replace the following code in generate_record.py:
216+
For example, say you are training a classifier to detect basketballs, shirts, and shoes. You will replace the following code in generate_tfrecord.py:
217217
```
218218
# TO-DO replace this with label map
219219
def class_text_to_int(row_label):
@@ -230,7 +230,7 @@ def class_text_to_int(row_label):
230230
elif row_label == 'ace':
231231
return 6
232232
else:
233-
None
233+
return None
234234
```
235235
With this:
236236
```
@@ -243,7 +243,7 @@ def class_text_to_int(row_label):
243243
elif row_label == 'shoe':
244244
return 3
245245
else:
246-
None
246+
return None
247247
```
248248
Then, generate the TFRecord files by issuing these commands from the \object_detection folder:
249249
```

0 commit comments

Comments
 (0)