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.py:116: RuntimeWarning: invalid value encountered in double_scalars recall = float(confusion_matrix[id, id] / total_target) #25

Open
JerrySor opened this issue Aug 12, 2020 · 2 comments

Comments

@JerrySor
Copy link

Instructions for updating:
Use eager execution and:
tf.data.TFRecordDataset(path)
Processed 100 images
Processed 200 images
Processed 300 images
Processed 400 images
Processed 400 images

Confusion Matrix:
(array([[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 83., 56., 53., 48., 92., 103., 94., 80., 15., 38., 150.]]), '\n')
confusion_matrix.py:116: RuntimeWarning: invalid value encountered in double_scalars
recall = float(confusion_matrix[id, id] / total_target)
category precision_@0.6IOU recall_@0.6IOU
1 0.0 NaN
2 0.0 NaN
3 0.0 NaN
4 0.0 NaN
5 0.0 NaN
6 0.0 NaN
7 0.0 NaN
8 0.0 NaN
9 0.0 NaN
0 0.0 NaN

could you explain me what is the problem?

@sbetts2
Copy link

sbetts2 commented Jun 23, 2021

@JerrySor Hi, were you able to ever fix this problem? I am having the same issue...thanks!

@JerrySor
Copy link
Author

JerrySor commented Jun 23, 2021 via email

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