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

Fails with run time error: 'TypeError: sequence item 0: expected str instance, bytes found' #2

Closed
frankdeepl opened this issue Nov 13, 2018 · 1 comment

Comments

@frankdeepl
Copy link

frankdeepl commented Nov 13, 2018

Hi Svpino,

When I tired to run your code on my dataset, I faced this problem.
Do you know how to resolve this problem?

Traceback (most recent call last): File "confusion_matrix.py", line 151, in <module> tf.app.run(main) File "/home/dongs/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "confusion_matrix.py", line 146, in main confusion_matrix = process_detections(FLAGS.detections_record, categories) File "confusion_matrix.py", line 62, in process_detections decoded_dict = data_parser.parse(example) File "/home/dongs/Documents/Project/object-detection-tool/object-detection-tool-debug/models/research/object_detection/metrics/tf_example_parser.py", line 153, in parse results_dict[key] = parser.parse(tf_example) File "/home/dongs/Documents/Project/object-detection-tool/object-detection-tool-debug/models/research/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

Thanks.

@frankdeepl frankdeepl changed the title Fails with run time error: 'str' object has no attribute 'features' Fails with run time error: 'TypeError: sequence item 0: expected str instance, bytes found' Nov 13, 2018
@svpino
Copy link
Owner

svpino commented Nov 14, 2018

Hi there, this is a duplicate of issue #1. Take a look at that one for the solution.

@svpino svpino closed this as completed Nov 14, 2018
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