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

Crashes with a DivideByZeroError when there are no detections #39

Open
drewm1980 opened this issue Dec 3, 2021 · 3 comments
Open

Crashes with a DivideByZeroError when there are no detections #39

drewm1980 opened this issue Dec 3, 2021 · 3 comments

Comments

@drewm1980
Copy link

Badly trained algorithms might not return detections at all. Tide should return meaningful results in this case instead of crashing on line:

return sum(aps) / len(aps)

With a quick search, I see several other places in the code that perform unchecked divisions. Tide should check for zero and either return meaningful results or meaningful error messages in all of them.

@BartvanMarrewijk
Copy link

Similar issue when the using the plot function with a AP50 of 100%

@nikheelpandey
Copy link

Hey, has anyone found a fix for it?

@meftehs
Copy link

meftehs commented Jun 22, 2023

Hey, Similar for me too, I tried to test yolov7 on coco dataset and then when i run tide.summarize(), an error of division by 0 appears !!!

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

4 participants