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

Error when evaluating #4

Open
sean880304 opened this issue Jul 10, 2022 · 1 comment
Open

Error when evaluating #4

sean880304 opened this issue Jul 10, 2022 · 1 comment

Comments

@sean880304
Copy link

Hi @quanghuy0497,
when I run evaluation.py, I get this error:

mAP PASCAL 60.4166679084301 %
mAP COCO: 46.73611200104157 %
Traceback (most recent call last):
  File "evaluation.py", line 100, in <module>
    print("mean Precision: ", np.mean(mprecision) * 100, "%")
  File "<__array_function__ internals>", line 6, in mean
  File "/home/icmems/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 3373, in mean
    out=out, **kwargs)
  File "/home/icmems/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 160, in _mean
    ret = umr_sum(arr, axis, dtype, out, keepdims)
ValueError: operands could not be broadcast together with shapes (6,) (5,) 

I think this shape error is because the image ground truth mask is 6, however, the predicted mask is only 5?
How or where do I solve this issue?
Thank you!!

@software93
Copy link

I have same issue did you solve it ?
I used this code for my custom dataset with 5 classes??

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