Comments (4)
Thanks for the issue!
This error is caused by the fact that I incorrectly specified the extra_calc operation criteria.
I'll fix it within an hour and post a new version!
from faster_coco_eval.
FIX ff6e336
without extra_calc
from 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)
{'AP_all': 0.844909645287565, 'AP_50': 0.9574501792007959, 'AP_75': 0.9422624028756038, 'AP_small': 0.6037607333485913, 'AP_medium': 0.8790270967302074, 'AP_large': 0.9185868759796408, 'AR_1': 0.17954286408399003, 'AR_10': 0.738941830046937, 'AR_100': 0.9033280920110436, 'AR_small': 0.7773887684368035, 'AR_medium': 0.9255266295014362, 'AR_large': 0.9589629629629629, 'AR_50': 0.9933915046286044, 'AR_75': 0.9782595186036742}
with extra_calc
from 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)
{'AP_all': 0.844909645287565, 'AP_50': 0.9574501792007959, 'AP_75': 0.9422624028756038, 'AP_small': 0.6037607333485913, 'AP_medium': 0.8790270967302074, 'AP_large': 0.9185868759796408, 'AR_1': 0.17954286408399003, 'AR_10': 0.738941830046937, 'AR_100': 0.9033280920110436, 'AR_small': 0.7773887684368035, 'AR_medium': 0.9255266295014362, 'AR_large': 0.9589629629629629, 'AR_50': 0.9933915046286044, 'AR_75': 0.9782595186036742, 'mIoU': 0.9211815696510985, 'mAUC_50': 0.99020986735309}
Please write after checking the results and I will close the issue
from faster_coco_eval.
The new version of the library is already on pypi
from faster_coco_eval.
Thanks for the fix!
It also works on my side, and the computed metrics seem to match the ones from pycocotools
:).
from faster_coco_eval.
Related Issues (7)
- I got an exception HOT 1
- hi,i want to consults how to selove this error "ModuleNotFoundError: No module named 'faster_coco_eval'" HOT 1
- Error when instanciating a Curves object HOT 3
- a function for non-coco format data HOT 1
- It seems that faster_coco_eval 1.3.1 has something that must be fixed. HOT 1
- Error when importing faster_eval_coco in python3.7.5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faster_coco_eval.