raccoon_dataset
raccoon_dataset copied to clipboard
No such file or directory while running generate_tfrecord.py
Hello, I have followed the tensorflow object detection API installation by following the below demo
https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10.
I am getting this problem while running the line---
python generate_tfrecord.py --csv_input=images\train_labels.csv --image_dir=images\train --output_path=train.record
Error:
(tf_gpu) C:\Tensorflow1\models\research\object_detection>python generate_tfrecord.py --csv_input=images\train_labels.csv --image_dir=images\train --output_path=train.record WARNING: Logging before flag parsing goes to stderr. W0927 00:55:20.335181 15036 deprecation_wrapper.py:119] From generate_tfrecord.py:121: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
W0927 00:55:20.341163 15036 deprecation_wrapper.py:119] From generate_tfrecord.py:107: The name tf.python_io.TFRecordWriter is deprecated. Please use tf.io.TFRecordWriter instead.
W0927 00:55:20.512737 15036 deprecation_wrapper.py:119] From generate_tfrecord.py:66: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.
Traceback (most recent call last):
File "generate_tfrecord.py", line 121, in
Solution 1: I have changed the xml to csv file by adding the .jpg extension.
I want to use it for my own dataset.
I am able to run the model for single class like models/research/object_detection/images/train/class1 models/research/object_detection/images/test/class1
I want to extend it to my multi class dataset. Folder structure: models/research/object_detection/images/train/class1 models/research/object_detection/images/train/class2 models/research/object_detection/images/train/class3
models/research/object_detection/images/test/class1 models/research/object_detection/images/test/class2 models/research/object_detection/images/test/class3
train_labels.csv file contains
filename,width,height,class,xmin,ymin,xmax,ymax img000000.jpg,640,480,auto,21,114,77,193 img000001.jpg,640,480,auto,332,10,504,229 img000000.jpg,640,480,bus,322,356,334,371 img000001.jpg,640,480,bus,341,357,351,370 img000002.jpg,5500,3667,car,2516,1933,2819,2422
Any help is much appreciated. Thank you in advance .