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 in cocoeval.py #402

Open
LONGRYUU opened this issue Apr 13, 2020 · 2 comments
Open

TypeError in cocoeval.py #402

LONGRYUU opened this issue Apr 13, 2020 · 2 comments

Comments

@LONGRYUU
Copy link

These 2 lines can cause TypeError when using numpy1.20.1.
self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True)
self.recThrs = np.linspace(.0, 1.00, np.round((1.00 - .0) / .01) + 1, endpoint=True)

The 3rd argument of np.linspace should be an integer, not a float.

@rebeen
Copy link

rebeen commented Apr 25, 2020

Hi,
did you know how to get the score ?? I am doing object detection and with a pre-trained model but don't know how to get the following format

[{
"image_id": int, "category_id": int, "bbox": [x,y,width,height], "score": float,
}]

@chAwater
Copy link

I think this issue fixed by PR #354 .

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