Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kdy1999 opened this issue Nov 15, 2018 · 0 comments

Comments

@kdy1999
Copy link

kdy1999 commented Nov 15, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant