Faster interpretation of the original COCOEval
Project description
Faster-COCO-Eval
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.
Install
Basic implementation identical to pycocotools
pip install faster-coco-eval
Additional visualization options
Only 1 additional package needed opencv-python-headless
pip install faster-coco-eval[extra]
Basic usage
import faster_coco_eval
# Replace pycocotools with faster_coco_eval
faster_coco_eval.init_as_pycocotools()
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
anno = COCO(str(anno_json)) # init annotations api
pred = anno.loadRes(str(pred_json)) # init predictions api (must pass string, not Path)
val = COCOeval(anno, pred, "bbox")
val.evaluate()
val.accumulate()
val.summarize()
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 colab_example.ipynb available in directory examples/comparison
Summary for 5000 imgs
Type | faster-coco-eval | pycocotools | Profit |
---|---|---|---|
bbox | 5.812 | 22.72 | 3.909 |
segm | 7.413 | 24.434 | 3.296 |
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
Examples
Update history
Available via link history.md
Star History
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for faster_coco_eval-1.6.5-cp313-cp313-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e61198e333ddecaff27af1b4fe73e5340162118a3cba036ed4e77eb1e95583 |
|
MD5 | 4bafbd3647bfdd98752b66bb222848a2 |
|
BLAKE2b-256 | 3f2830c774e22637b7f2ecdb607fa27c994e57320c92634792082cbe079777fb |
Hashes for faster_coco_eval-1.6.5-cp313-cp313-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9924aa51d7c7edc248522fd062185410de998b42f1b5af5259dde805dbab6eb0 |
|
MD5 | 45b51eb8e3fa4c3ea6be28d4682bbcaf |
|
BLAKE2b-256 | afcf9c09d5cf1abd680707db6b26367c370f6bfe16dca598d3b3dae4e79af206 |
Hashes for faster_coco_eval-1.6.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4438eb389ca4173a8bc3eca82b3d6b5ffdd293d1a1b2da188dc7a3d9d7c1328 |
|
MD5 | 338c6b669a026c0751aae5def4079124 |
|
BLAKE2b-256 | 2efa10d00e5f58d4c97b35328ccd9595d7d77a4eb3ea37201a3ef954ed11b2c6 |
Hashes for faster_coco_eval-1.6.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a93c6caca3f1b0d0d868f2cf1f2f5924b8671206b91a58e3a7576f151fcbcc20 |
|
MD5 | fbcde985aedce12e4457699229dc0933 |
|
BLAKE2b-256 | 6999b6c56fc2dc7d6d77da82e9703c368c116f7492ecce1e82810ecc17a230fd |
Hashes for faster_coco_eval-1.6.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66f067423b022549bd686443a4c0b2078817a4592ce48a647ec5f18ebc465a96 |
|
MD5 | 014e06297fce9af7ab9ad5eb0b5a4b2c |
|
BLAKE2b-256 | 2e7fb82fe7a23bb669895ee7700fc1ffe6809c36d56cff9d1df4943ce5432c82 |
Hashes for faster_coco_eval-1.6.5-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96f68814d85749a308286944b5243d8ac79aeec28e5b0d9ef7d09ce1698e9fac |
|
MD5 | 7fc816027c79536bf7875fc79771cd7e |
|
BLAKE2b-256 | c29b8948d6cef6420feb7a26a04cb7241d193fd516d698b7483a7e7aacca6c68 |
Hashes for faster_coco_eval-1.6.5-cp312-cp312-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa4adae45e6beb3a2cdb5f03e0131745654173729e20fe02610d07d24bdb463 |
|
MD5 | 6f6434105e3bf6712e31b85a71a47b92 |
|
BLAKE2b-256 | fdd71f92d301f98641db937d9b7ebde043a2bcbe6fe2479cec0a966a2757b19f |
Hashes for faster_coco_eval-1.6.5-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea816119febb88b994ad4facfb65b2e1717ea776ec8f59ac1ae165dd4f77051f |
|
MD5 | dba314c97a423d2b7df24957c3a00b10 |
|
BLAKE2b-256 | bd7521869646532f5573c0bcaddcff2a31bb2cb85b5d98163e024521abf6cdbb |
Hashes for faster_coco_eval-1.6.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6fca63ac1b440d5deeba448fd79abea1b75eb8c10ea09784ab9d0d11cf0dc3e |
|
MD5 | 12c97a3f2a3eea8bac5b1bbcb098dfe6 |
|
BLAKE2b-256 | d8146ba5eca2726e30ca3473813e57aa0493cf707a1c83fbfd06cd31e7651340 |
Hashes for faster_coco_eval-1.6.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9664c84e1f98d7283a879d9b278ce9a61cadbcb23671bb1a950275edb3688620 |
|
MD5 | 68538418e3b7c9a65e15d01f8d297582 |
|
BLAKE2b-256 | 7fdaab9924c498c2a0e636613eca369347d6e132794485917e382ff68172b984 |
Hashes for faster_coco_eval-1.6.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 241227e3578b8a4b1d1daf42dad54d8c22620d6eb7d9183645a4db5fb4830103 |
|
MD5 | 10cb59abdcd3b9413f8b2a58b5873124 |
|
BLAKE2b-256 | dbadde7775b107c1122664a6060d62c90e39174d96846698ed8d0acfc80cb0b5 |
Hashes for faster_coco_eval-1.6.5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdfb56d626b7f4de242cf12d7999b26e0fecd4fbb82e335aba66fd54563091e4 |
|
MD5 | b048a1c64fbad142edd18eb7a4214edb |
|
BLAKE2b-256 | e9b176e4dd145b4dc2a4d64f1429623cbf2fc467c7cb58a7b6bda52b26bf880a |
Hashes for faster_coco_eval-1.6.5-cp311-cp311-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be69598a109fcf9fbf76b7543542f9139f4c9fa49d7c651f922e089fd15336d |
|
MD5 | a8b950c8cfedc9fe252f8e845acf82f7 |
|
BLAKE2b-256 | 49bfa5b135bf021ce50f02044b22b151f0caf8949acddb2a97e8be9c51a8d36c |
Hashes for faster_coco_eval-1.6.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9b60a9d8223511648dab5fa043886b02947b7689d38b31144e304d9d771d27f |
|
MD5 | 51a073084fe47bf03360f719efa7eee2 |
|
BLAKE2b-256 | c8ab9c618182f6174e1a4c6dc04d25109c54163e1d4bc6540f2c359d7d7d482a |
Hashes for faster_coco_eval-1.6.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f8f66203289dfa09885f62dc20fc2a10c3d7da4181d6164b360eacf0940b71 |
|
MD5 | 320fc82ceec9c558bb9a7c67e6b83107 |
|
BLAKE2b-256 | 475f3f80ede95eec871a5d6b3ed525e15cc4755f00c253ff3cde6c6f2fc6dd9f |
Hashes for faster_coco_eval-1.6.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 435f77a01d6fcb76ebd0a7a557e2b1a705d77a026d1295c6a3ba117dbecb6243 |
|
MD5 | 9e554394c95e4bfe97988882ffaaf7d4 |
|
BLAKE2b-256 | a3cd6e342b9c26f4e0d6e3c1d4769a4093887cd7c4a1b0f40714b4fc49042ba0 |
Hashes for faster_coco_eval-1.6.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a740a18d28bedbcdb58720d1df3f2aea178aaa5f645803a4c2c60df2ac5a312 |
|
MD5 | 7dbbc3d2c5508a68a00ba0488b3811b0 |
|
BLAKE2b-256 | 32da4b4f7c01590a82c66e51c492fd935aec277cda67979be9f00594ba34e635 |
Hashes for faster_coco_eval-1.6.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7c58bc7f61a0f695dda0d893807c6ef4e305aec08eb5a27fa69ada00cd8b2aa |
|
MD5 | 299adea5fe66a6907f76b5cc290c948c |
|
BLAKE2b-256 | e62b284de6377323d1772b9cf6f4b369d416373235427d6e61b75944c3cafb26 |
Hashes for faster_coco_eval-1.6.5-cp310-cp310-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8065e6ee0c877fc22e56e44bdb4c1487a0c4221a56e3edef09533bdf525982a |
|
MD5 | 0272fadf4ad01f39c50378bc77cbae9b |
|
BLAKE2b-256 | 708896c5da1549976d6e904939de4abfe2f8c3ece605bf1a83d1a6d7e2fec653 |
Hashes for faster_coco_eval-1.6.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99f271dfdc1b5769d34108c1f0fa6aaebe161be626a5fad69b87d87ca98bc53d |
|
MD5 | 63aad34918834e6dea427aa1497c401a |
|
BLAKE2b-256 | f21861a17b09ecaacec3b4f285d3f83dc4f5fc15065edf13efdb27e16c820b97 |
Hashes for faster_coco_eval-1.6.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1575b6d7f82e5f2d808f7cac51602b3c930297dac9a66d16d845a09dd326131a |
|
MD5 | 3d3f7acf99ac69846003eadc835b9b68 |
|
BLAKE2b-256 | 0ab8c7744f0868db73db78fd741d8fbb576dc46894bf7a182bdb0d3a0e8bb583 |
Hashes for faster_coco_eval-1.6.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04412f420a4242254d39ad9d95147c8dcb9c6a8f1e06922f6a64a137917fb57a |
|
MD5 | e0400c56be5f63fcde989fa9071fa22e |
|
BLAKE2b-256 | 182ca6138bb3a1c0934efd647e7f2adb9bfc01cbbde3334d5e1ec9e3ecd97a4e |
Hashes for faster_coco_eval-1.6.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a80e5173c1718fa5feed85496d8cf98aa84509a3efb90f55bfb13ad248d99de2 |
|
MD5 | 9c9acab912e471800799cf38036f276f |
|
BLAKE2b-256 | 833cac5da0dac2a9d313e8bda4af4606fb3008066fa8dba35876bfc739502577 |
Hashes for faster_coco_eval-1.6.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0602b3349c2cf71383eb23b94b0e44718733e94cbd34c46d6020b5a695e3b427 |
|
MD5 | 097b221b8966b7276e4e277dfe2183ce |
|
BLAKE2b-256 | 31bf3dd66b3190553646463848fd02bc1aa22fd502d51b85aea751547fea4040 |
Hashes for faster_coco_eval-1.6.5-cp39-cp39-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 930c49a3fcf4b3fbd306495a7eb84bc4bdfaef00b8415f7758c38567cae3a0e2 |
|
MD5 | 90df9797def29bbbf6e37c9ccd6e71b2 |
|
BLAKE2b-256 | dd0330e99a1a74b5dc901adc183e44117f666d67f5393333e71e59d0338db50a |
Hashes for faster_coco_eval-1.6.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ce85b057b4c855cee62215047182c3454e576fd6f81d3c01284f1ac723ded5 |
|
MD5 | 5740e2f8c91eb366576fb4644c8e4345 |
|
BLAKE2b-256 | d3e275947cdd4e461f66d2f42482beec69bee985e9e60853d27f4b2075ebbb61 |
Hashes for faster_coco_eval-1.6.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f811208cae1e6240e1339f998e7bd126504532afbd5f7f5e7347434b0fb020 |
|
MD5 | 3e7591ca7b7cce5976488ada5a552d46 |
|
BLAKE2b-256 | e10c7d2e4d21c6f2c5631835c51a9d7f142f6ad820c0f591d6e083fd355275ac |
Hashes for faster_coco_eval-1.6.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 920942bad98b806698bd98087f253e8dbb841af2b1f9f1d189602bf45fb94805 |
|
MD5 | 38d9cb01f75b3068a0e415c9ca63668d |
|
BLAKE2b-256 | 58d44a1e35638fa4cfd1077cb7b2ac67ec03d92924505944cdc46cf00bd09460 |
Hashes for faster_coco_eval-1.6.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac41b6ef607e247ad552677366bdffb9f9b79ac2e679eb649fbbbf6785bda64 |
|
MD5 | 10c67c48803ca3b1169654779c749bda |
|
BLAKE2b-256 | 0f7af6a5c75ddebae3d7d64dd25b432afa13d4987313c7136263db6e308c0163 |
Hashes for faster_coco_eval-1.6.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7904adbe4fd35833fed968f8a1aab01c99b302ec07ad3ba7d7e0794fd1a8ff02 |
|
MD5 | d67b1454b2f24c85e4f10bc5972b1756 |
|
BLAKE2b-256 | feda108cc3b0832ecc3cd6b8335567ed2bfcf5c6f8f17b7090a2a7c6d1de678d |
Hashes for faster_coco_eval-1.6.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce4a70809feafec0947ce68cf4f4e0b8b6fadf9e348195052cf92c80552a7928 |
|
MD5 | ad3ae509f1e0fe60f5edcae6a875486b |
|
BLAKE2b-256 | 153439f8c3faa0f8d17fdb8a016b2514a0746f6cff8a3e14414f36353034f663 |
Hashes for faster_coco_eval-1.6.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 370c78021ee69cf980cf54dc73d9e0ba751dd2e62c8517ce845e989647a8329c |
|
MD5 | 7d5fdc87a67b2311b29585a6abb883b2 |
|
BLAKE2b-256 | e5b10d85e3de4d1c16a30c0c8a314741f802b0c6d892d300a849bc014d68ef93 |
Hashes for faster_coco_eval-1.6.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4149f1fd7cac730107a69605773b11618e618a6c807ff8a29fc39bfb0f476200 |
|
MD5 | a6ad89adb1dc46feecaf29e511245fbd |
|
BLAKE2b-256 | 58fec15ee62a61abbb55ef0335d2c2ca33e49bde504cf8684a4a0a24df463c25 |
Hashes for faster_coco_eval-1.6.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dca66a293fe040ddd76254f719a929a1573a0cb165e3886cc8bebcbc4e6493e |
|
MD5 | 3fedb96cae2d07d6a1060243ab7d7f41 |
|
BLAKE2b-256 | f555cfd98b55a30c35022ce8aa8e0562dd814e014c6b6bf3b22c14be091bd789 |
Hashes for faster_coco_eval-1.6.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c6e5e533e36bc4e291bbb6891bccaebc3eb71d87498d8c7ff8b9183f97225e |
|
MD5 | 7f9f5f96f7022d36d4771a83421adc7f |
|
BLAKE2b-256 | 46d9c58d86458f44bd25ddacefac30b18a600e27d405019be3f74df86d45b2fb |
Hashes for faster_coco_eval-1.6.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0159e87da41ecc8a1a62953e661f4d9d210543b926e1c0a54311d989b92910cf |
|
MD5 | ba1adbaca65135e201254bf95f681e56 |
|
BLAKE2b-256 | 2493f9b52dd141f6f4be9ac07c8c56462d42f384472b9b968fe3684c030f04e3 |
Hashes for faster_coco_eval-1.6.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b45bf8a6cdff83f3d8ecf22c27a73f60b6391fffe5300e1050da9dbb796ad79e |
|
MD5 | 89956fc6731ab9491773f7aebb2c649a |
|
BLAKE2b-256 | c19cdf7fcbd8f0b14d2a5e8fc27e518dde32bee24171508464ccab8be2b34c77 |
Hashes for faster_coco_eval-1.6.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37019f6fbcf3f7209648da436e7a2418a9880de0bda1f9e699a6c7d19f51ee5 |
|
MD5 | 9c30d78665641128f8b3b2f6af7527d2 |
|
BLAKE2b-256 | 0613d9a3046c7e3c1c4925e3dca266dbf9b3d9f71d916ef04811537147e7c2e2 |
Hashes for faster_coco_eval-1.6.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c280f9fb9d985dada67a8ec7998da15483b431eb1bfd3dbd00a218b4125a0bb |
|
MD5 | fc80ba8297a1f23aec33227c57b54124 |
|
BLAKE2b-256 | cd81b071093fb6ccad8ef7c1fec5e512b20820e223463286c8bfb4b84a8d393e |