question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ZeroDivisionError

See original GitHub issue
Traceback (most recent call last):
  File "./keras_retinanet/bin/evaluate.py", line 165, in <module>
    main()
  File "./keras_retinanet/bin/evaluate.py", line 161, in main
    print('mAP: {:.4f}'.format(precision / present_classes))
ZeroDivisionError: division by zero

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
vcarpanicommented, Sep 10, 2018

Sure, I will add a check in the test generator 😉

1reaction
vcarpanicommented, Sep 7, 2018

@hgaiser sure, will look into this ASAP

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error python : [ZeroDivisionError: division by zero]
I faced an error when I run my program using python: The error is like this: ZeroDivisionError: ...
Read more >
Built-in Exceptions — Python 3.11.1 documentation
The base class for those built-in exceptions that are raised for various arithmetic errors: OverflowError , ZeroDivisionError , FloatingPointError .
Read more >
ZeroDivisionError: division by zero - Net-Informations.Com
ZeroDivisionError is a built-in Python exception thrown when a number is divided by 0. This means that the exception raised when the second...
Read more >
Python Exception Handling - ZeroDivisionError - Airbrake Blog
A look at the ZeroDivisionError in Python, including a functional code sample showing how different numeric types produce different results.
Read more >
Class: ZeroDivisionError (Ruby 2.5.0)
ZeroDivisionError. Raised when attempting to divide an integer by 0. 42 / 0 #=> ZeroDivisionError: divided by 0. Note that only division by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found