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

TypeError: sequence item 0: expected str instance, bytes found #17

Closed
sherylmehta opened this issue Dec 2, 2019 · 2 comments
Closed

Comments

@sherylmehta
Copy link

sherylmehta commented Dec 2, 2019

After generating the detection record, I run the confusion_matrix script with all arguments.I get the following error.

Traceback (most recent call last):
File "confusion_matrix.py", line 142, in
tf.app.run(main)
File "/media/DeepData/gpu-users/xxxx/.conda/envs/TF/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "confusion_matrix.py", line 137, in main
confusion_matrix = process_detections(FLAGS.detections_record, categories)
File "confusion_matrix.py", line 47, in process_detections
decoded_dict = data_parser.parse(example)
File "/media/DeepData/gpu-users/xxxx/.conda/envs/TF/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/tf_example_parser.py", line 153, in parse
results_dict[key] = parser.parse(tf_example)
File "/media/DeepData/gpu-users/xxxx/.conda/envs/TF/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/tf_example_parser.py", line 49, in parse
self.field_name].HasField("bytes_list") else None
TypeError: sequence item 0: expected str instance, bytes found

@svpino
Copy link
Owner

svpino commented Dec 2, 2019 via email

@sherylmehta
Copy link
Author

Thanks. It worked.

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

2 participants