GithubHelp home page GithubHelp logo

Comments (3)

patrontheo avatar patrontheo commented on June 25, 2024 1

@MiXaiLL76 I tried again and it works, not sure what triggered the error before, sorry about that. Thanks for your answer :)

from faster_coco_eval.

MiXaiLL76 avatar MiXaiLL76 commented on June 25, 2024

I can not reproduce (colab):

> md5sum preds.json
a3e73672a41eeb695daa02cb294b2f12  preds.json
> md5sum gt.json
639c028f1228d12b38dbc556dbab2349  gt.json
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from faster_coco_eval import COCO
>>> from faster_coco_eval.extra import Curves
>>> import faster_coco_eval
>>> faster_coco_eval.__version__
'1.4.3'
>>> cocoGt = COCO('gt.json')
>>> cocoDt = cocoGt.loadRes('preds.json')
>>> cur = Curves(cocoGt, cocoDt, iou_tresh=0.5, iouType='bbox')
>>> cur
<faster_coco_eval.extra.curves.Curves object at 0x7f8684e7bb20>
>>>

Perhaps in your preds not all detections have a score.

inds = np.argsort([-d["score"] for d in dt], kind="mergesort")

Sorts detections by the score parameter. Which should be

from faster_coco_eval.

MiXaiLL76 avatar MiXaiLL76 commented on June 25, 2024

@patrontheo Are there any new examples of the bug? or I close this issue

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.