GithubHelp home page GithubHelp logo

Comments (4)

MiXaiLL76 avatar MiXaiLL76 commented on July 4, 2024 1

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.

MiXaiLL76 avatar MiXaiLL76 commented on July 4, 2024

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.

MiXaiLL76 avatar MiXaiLL76 commented on July 4, 2024

The new version of the library is already on pypi

from faster_coco_eval.

patrontheo avatar patrontheo commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.