svpino / tf_object_detection_cm

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

new tf2 compatible version #29

Closed SamLee514 closed 3 years ago

SamLee514 commented 3 years ago

Because infer_detections.py from the TFODAPI repo doesn't yet work for TF2, I haven't been able to use the original confusion matrix script. This script basically does the same thing as the original one, except it takes in the input tfrecord file and the model pb file so that the confusion matrix can be computed on detections directly instead of reading from a second record file. Until they update the TFODAPI this should suffice as a workaround.

Also, I added an option to visualize the detection boxes overlayed with the ground truth boxes and save the result. Good for sanity checks.