-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error in accumulate: math_matches error: Assertion error in line 157 #19
Comments
Thanks for the issue! I'll fix it within an hour and post a new version! |
FIX ff6e336without extra_calcfrom faster_coco_eval import COCO, COCOeval_faster
coco_gt = COCO('gt.json')
coco_dt = coco_gt.loadRes('preds.json')
cocoEval = COCOeval_faster(coco_gt, coco_dt, iouType='bbox')
cocoEval.evaluate()
cocoEval.accumulate()
cocoEval.summarize()
print(cocoEval.stats_as_dict)
with extra_calcfrom faster_coco_eval import COCO, COCOeval_faster
coco_gt = COCO('gt.json')
coco_dt = coco_gt.loadRes('preds.json')
cocoEval = COCOeval_faster(coco_gt, coco_dt, iouType='bbox', extra_calc=True)
cocoEval.evaluate()
cocoEval.accumulate()
cocoEval.summarize()
print(cocoEval.stats_as_dict)
Please write after checking the results and I will close the issue |
The new version of the library is already on pypi |
Thanks for the fix! |
Describe the bug
cocoEval.accumulate() is not working. It returns this error:
To Reproduce
Expected behavior
This command should work without errors. It does work correctly with
pycocotools
implementation.Additional context
Could this happen because an image contains no ground truths ? Just an idea I'm throwing, not sure it's related.
Files
gt.json
preds.json
The text was updated successfully, but these errors were encountered: