Skip to main content

Faster interpretation of the original COCOEval

Project description

Faster-COCO-Eval

PyPI PyPI Downloads

docs license

Disclaimer

I often use this project, but I saw it abandoned and without a public repository on github. Also, part of the project remained unfinished for a long time. I implemented some of the author's ideas and decided to make the results publicly available.

Faster-COCO-Eval base

This package wraps a facebook C++ implementation of COCO-eval operations found in the pycocotools package. This implementation greatly speeds up the evaluation time for coco's AP metrics, especially when dealing with a high number of instances in an image.

Comparison

For our use case with a test dataset of 5000 images from the coco val dataset. Testing was carried out using the mmdetection framework and the eval_metric.py script. The indicators are presented below.

Visualization of testing comparison.ipynb available in directory examples/comparison Tested with yolo3 model (bbox eval) and yoloact model (segm eval)

Summary for 5000 imgs

Type COCOeval COCOeval_faster Profit
bbox 18.477 sec. 7.345 sec. ~2.5x faster
segm 29.819 sec. 15.840 sec. ~1.7x faster

Summary for 500 imgs

Type COCOeval COCOeval_faster Profit
bbox 3.57 sec. 2.03 sec. ~1.7x faster
segm 4.16 sec. 2.41 sec. ~1.7x faster

Feautures

This library provides not only validation functions, but also error visualization functions. Including visualization of errors in the image.
You can study in more detail in the examples and Wiki.

Usage

Code examples for using the library are available on the Wiki

Update history

Available via link history.md

License

The original module was licensed with apache 2, I will continue with the same license. Distributed under the apache version 2.0 license, see license for more information.

Citation

If you use this benchmark in your research, please cite this project.

@article{faster-coco-eval,
  title   = {{Faster-COCO-Eval}: Faster interpretation of the original COCOEval},
  author  = {MiXaiLL76},
  year    = {2024}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faster_coco_eval-1.5.1.tar.gz (41.7 kB view hashes)

Uploaded Source

Built Distributions

faster_coco_eval-1.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (610.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

faster_coco_eval-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (627.4 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

faster_coco_eval-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (594.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

faster_coco_eval-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (599.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

faster_coco_eval-1.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (605.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

faster_coco_eval-1.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (570.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

faster_coco_eval-1.5.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (561.9 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page