xthotcoco
xtcocotools-compatible keypoint evaluation (COCO-WholeBody, CrowdPose) on hotcoco's Rust engine. Pure Python.
pip install xthotcoco
Usage
from xthotcoco import COCO, COCOeval, sigmas
gt = COCO("coco_wholebody_val_v1.0.json")
dt = gt.loadRes("results.json")
ev = COCOeval(gt, dt, "keypoints_wholebody", sigmas.WHOLEBODY)
ev.evaluate(); ev.accumulate(); ev.summarize()
print(ev.stats)
# CrowdPose
ev = COCOeval(COCO("crowdpose_test.json"), dt, "keypoints_crowd",
sigmas.CROWD, use_area=False)
ev.run()
iouTypes: keypoints, keypoints_wholebody, keypoints_foot,
keypoints_face, keypoints_lefthand, keypoints_righthand,
keypoints_crowd. COCO(..., test_index=[...]) evaluates a keypoint subset.
Parity and speed
rtmlib RTMPose-WholeBody on 500 COCO val2017 images, COCO-WholeBody v1.0 val:
| iouType | AP | xtcocotools | xthotcoco | max diff |
|---|---|---|---|---|
| keypoints | 0.721 | 0.468 s | 0.005 s | 7e-16 |
| keypoints_wholebody | 0.649 | 0.774 s | 0.008 s | 6e-16 |
| keypoints_foot | 0.734 | 0.511 s | 0.003 s | 2e-15 |
| keypoints_face | 0.822 | 0.638 s | 0.008 s | 3e-15 |
| keypoints_lefthand | 0.614 | 0.585 s | 0.004 s | 1e-15 |
| keypoints_righthand | 0.601 | 0.561 s | 0.004 s | 1e-15 |
All metrics match xtcocotools to double precision; tests/ checks this
against xtcocotools when it is installed.
How it works
The WholeBody/CrowdPose dataset is rewritten into standard COCO keypoints
form (part concatenation, part score, area handling) and passed to
hotcoco.COCOeval with per-part kpt_oks_sigmas. OKS and AP are computed
in hotcoco.
License
MIT. Evaluation semantics follow xtcocotools (MIT).
Metadata
Release files for xthotcoco 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xthotcoco-0.1.0.tar.gz | 5.6 kB | Without provenance | Details for xthotcoco-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xthotcoco-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for xthotcoco-0.1.0-py3-none-any.whl |
Total release size: 12.5 kB
Release files / xthotcoco-0.1.0.tar.gz
| Download URL | xthotcoco-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
027151c84bc1d6c69660090f57472b08d713319224655a07f8f3052722440459
|
|
BLAKE2b-256 checksum How to use checksums |
6a0e59da94120ef3a1733d9728af1db01e3b4b08f7e252690dd8b5effccf5179
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / xthotcoco-0.1.0-py3-none-any.whl
| Download URL | xthotcoco-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb242b1d3004543b670b6a220acd9a2ee367b2cfa3bc7d96c44411e300792bd0
|
|
BLAKE2b-256 checksum How to use checksums |
3229d7a4e5efd947118011e85a56ce7faa5ebd6cf35e78273adbe518b6c59cdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for xthotcoco 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.