Bellspringsteen/OurCamera

Hello, sincerely thank you for sharing, I have the following error when running generate_tfrecord.py, can you help me solve this problem?

Opened this issue · 0 comments

Traceback (most recent call last): File "/media/junhao/SSD2/Download/OurCamera-master/OurCamera-master/generate_tfrecord.py", line 132, in <module> tf.app.run() File "/home/junhao/.local/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "/media/junhao/SSD2/Download/OurCamera-master/OurCamera-master/generate_tfrecord.py", line 124, in main tf_example = create_tf_example_from_jpg_xml(images_path+filename+'.jpg', labels_path+filename+'.xml') File "/media/junhao/SSD2/Download/OurCamera-master/OurCamera-master/generate_tfrecord.py", line 82, in create_tf_example_from_jpg_xml 'image/filename': dataset_util.bytes_feature(jpg_file), File "./models-master/research/object_detection/utils/dataset_util.py", line 30, in bytes_feature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) TypeError: './666/images/2017-12-15 12_59_56.052543.jpg' has type str, but expected one of: bytes