You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-25
Original file line number
Diff line number
Diff line change
@@ -125,35 +125,13 @@ LabelImg supports two formats, PascalVOC and Yolo. For this tutorial, make sure
125
125
126
126
### 4. Generating Training data
127
127
128
-
With the images labeled, we need to create TFRecords that can be served as input data for training the object detector. To create the TFRecords, we will use two scripts from [Dat Tran’s raccoon detector](https://github.com/datitran/raccoon_dataset). Namely, the xml_to_csv.py and generate_tfrecord.py files.
129
-
130
-
After downloading both scripts, we first change the main method in the xml_to_csv file to transform the created xml files to csv correctly.
Now we can transform our xml files to csvs by opening the command line and typing:
128
+
With the images labeled, we need to create TFRecords that can be served as input data for training the object detector. To create the TFRecords, we will first convert the XML label files created with LabelImg to one CSV file using the [xml_to_csv.py script](xml_to_csv.py).
149
129
150
130
```bash
151
131
python xml_to_csv.py
152
132
```
153
133
154
-
The above command creates two files in the images directory. One called test_labels.csv and another one called train_labels.csv.
155
-
156
-
Next, open the generate_tfrecord.py file and replace the labelmap inside the class_text_to_int method with your own label map.
134
+
The above command creates two files in the images directory. One is called test_labels.csv, and another one is called train_labels.csv. Next, we'll convert the CSV files into TFRecords files. For this, open the [generate_tfrecord.py file](generate_tfrecord.py) and replace the labelmap inside the class_text_to_int method with your own label map.
0 commit comments