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. #21

Closed
viniciusov opened this issue Jan 13, 2020 · 1 comment
Closed

Comments

@viniciusov
Copy link

After running

python confusion_matrix.py --detections_record=data/train.record --label_map=data/object_detection.pbtxt --output_path=confusion_matrix.csv

I got this error:

WARNING:tensorflow:From confusion_matrix.py:38: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and:
`tf.data.TFRecordDataset(path)`
Traceback (most recent call last):
  File "confusion_matrix.py", line 142, in <module>
    tf.app.run(main)
  File "C:\Users\vinicius\Anaconda3\lib\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 "C:\Users\vinicius\object_detection\models\research\object_detection\metrics\tf_example_parser.py", line 153, in parse
    results_dict[key] = parser.parse(tf_example)
  File "C:\Users\vinicius\object_detection\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.

I'm Using Tensorflow object Detection API and TF==1.13.1.

@svpino
Copy link
Owner

svpino commented Jan 13, 2020

Check issue #1

@svpino svpino closed this as completed Jan 13, 2020
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