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

AttributeError: module 'mrcnn.utils' has no attribute 'gt_pred_lists' #8

Closed
nataliameira opened this issue Aug 5, 2021 · 4 comments

Comments

@nataliameira
Copy link

Hello
I copied your code to the end of my utils.py file.

I tried to calculate the mAP. I get this error:

AttributeError: module 'mrcnn.utils' has no attribute 'gt_pred_lists'

Your help will be appreciated.

@Altimis
Copy link
Owner

Altimis commented Aug 5, 2021

The gt_pred_lists exists in the utils file. Maybe you forgot to copy it or you didn't save the file before executing.

@nataliameira
Copy link
Author

nataliameira commented Aug 5, 2021

Thanks @Altimis

I found the problem. My Notebook jupyter was not loading the changes made in utils.py.

Now it worked. However, all my mAP results are given zero.

Do you know why?
map zero

@Altimis
Copy link
Owner

Altimis commented Aug 9, 2021

Sorry for the late response. Actually, the compute_ap function is exactly the one that exists in the original utils.py. So if the AP of each image is equal to 0 it would mean that your model isn't performing well. Can you show me your confusion matrix please ?

@nataliameira
Copy link
Author

@Altimis I solved my problem, thank you for your help!

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