tf_object_detection_cm
tf_object_detection_cm copied to clipboard
confusion_matrix_tf2.py:281: RuntimeWarning: invalid value encountered in double_scalars precision = float(confusion_matrix[id, id] / total_predicted)
Hi there,
I got this error at the last part of the confusion matrix.
Confusion Matrix:
[[0. 0. 0. ... 0. 0. 2.]
[0. 0. 0. ... 0. 0. 5.]
[0. 0. 0. ... 0. 0. 2.]
...
[0. 0. 0. ... 0. 0. 7.]
[0. 0. 0. ... 0. 0. 3.]
[0. 0. 0. ... 0. 0. 0.]]
confusion_matrix_tf2.py:281: RuntimeWarning: invalid value encountered in double_scalars
precision = float(confusion_matrix[id, id] / total_predicted)
category [email protected] [email protected]
0 BARRILITOAL355ML--BARRILITO NaN 0.0
1 BARRILITONR325-444ML--BARRILITO NaN 0.0
2 BARRILITONR6PACK325-444ML--BARRILITO NaN 0.0
3 BUDLIGHTAL355-473ML--BUDLIGHT NaN 0.0
Do you have any idea what would might be?