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

TypeError: 'numpy.float64' object cannot be interpreted as an integer #28

Open
Dil-G opened this issue Apr 24, 2023 · 1 comment
Open

Comments

@Dil-G
Copy link

Dil-G commented Apr 24, 2023

Gives the following error

image

@balazsmorv
Copy link

Hi @Dil-G, I don't know whether you've already found a solution or not, but I seem to have found one. In cocoeval.py, change lines 619 and 620 to the following:

self.iouThrs = np.linspace(.5, 0.95, int(np.round((0.95 - .5) / .05) + 1), endpoint=True)
self.recThrs = np.linspace(.0, 1.00, int(np.round((1.00 - .0) / .01) + 1), endpoint=True)

Only these two float -> integer conversions are necessary for it to work. Hope this helps you!

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