svpino / tf_object_detection_cm

Confusion Matrix in Object Detection with TensorFlow
78 stars 36 forks source link

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

Closed sherylmehta closed 4 years ago

sherylmehta commented 4 years ago

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 commented 4 years ago

Check issue #1 for an answer.

On Mon, Dec 2, 2019 at 7:45 AM Sheryl Mehta notifications@github.com wrote:

After generating the detection record, I run the confusion_matrix script will 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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/svpino/tf_object_detection_cm/issues/17?email_source=notifications&email_token=AAITCSRZZ2NXY6U3MQRUNF3QWT7NXA5CNFSM4JTVH4ZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5IAPLA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITCSX6UP6FQ5AQAGZ6O2TQWT7NXANCNFSM4JTVH4ZA .

-- Sent from my iPhone

sherylmehta commented 4 years ago

Thanks. It worked.