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

confusion_matrix_tf2.py:281: RuntimeWarning: invalid value encountered in double_scalars precision = float(confusion_matrix[id, id] / total_predicted) #42

Open
td43 opened this issue Nov 4, 2021 · 0 comments

Comments

@td43
Copy link

td43 commented Nov 4, 2021

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  precision_@0.5IOU  recall_@0.5IOU
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?

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

1 participant