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

ZeroDivisionError:float division by zero #11

Open
annni1 opened this issue Jun 30, 2021 · 2 comments
Open

ZeroDivisionError:float division by zero #11

annni1 opened this issue Jun 30, 2021 · 2 comments

Comments

@annni1
Copy link

annni1 commented Jun 30, 2021

file:util.py
function:average_precision()
question1:The problem of ZeroDiVisionError:float Division by Zero often occurs in the function that calculates the average precision of each class in the util.py file.Maybe because pos_count is always zero.The program did not perform +1 operation.
How to solve excuse me?
question2:If label==1 was found in two places in the function average_precision() code. Is there an error here?

@sorrowyn
Copy link

sorrowyn commented Jul 3, 2021

voc2012 ?
http://host.robots.ox.ac.uk:8080/

@Wollytt
Copy link

Wollytt commented Nov 12, 2021

Having the same issue here, how did you fix it? Thanks!!

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

3 participants