Easy AP Calculator with Python
Project description
calc4ap
Pascal VOC (http://host.robots.ox.ac.uk/pascal/VOC/)
Install via PyPI
$ pip install calc4ap
How to Use
from calc4ap.voc import CalcVOCmAP
# (some codes ...)
voc_ap = CalcVOCmAP(labels=labels, preds=preds, iou_thr=0.5, conf_thr=0.0)
ap_summary = voc_ap.get_summary()
car_AP = ap_summary['car']
mAP = ap_summary['mAP']
CalcVOCmAP Args
preds: (list): list of[left, top, right, bottom, confidence, class_name, image_id]labels: (list): list of[left, top, right, bottom, class_name, image_id]iou_thr: (float): IoU Threshold (Default: 0.5)conf_thr: (float): Confidence Threshold (Default: 0.0)
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
calc4ap-1.0.1.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calc4ap-1.0.1.tar.gz.
File metadata
- Download URL: calc4ap-1.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca3ec521aadc7a7f6fcd1844be265d4b0c696cceb48103355ad01c26dbe5e2e
|
|
| MD5 |
d0b5ee0afab9b70f82bb3b8537caf141
|
|
| BLAKE2b-256 |
bb169d2d2e82195301fecb3073312118f16803662c8df5ddb8d7a4ef1a2ad794
|
File details
Details for the file calc4ap-1.0.1-py3-none-any.whl.
File metadata
- Download URL: calc4ap-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83e689295f6277b0098054aa96a29e0aafb9725f06d070c30e4395eb4a6768c6
|
|
| MD5 |
71ac243390d5bfab9c8bd7ecffd80969
|
|
| BLAKE2b-256 |
91ce09b532165e0d8f82d5695fde493463e8c54ca539c6f662a5fe6557b2c488
|