An open API service indexing awesome lists of open source software.

https://github.com/devbruce/calc4ap

Easy AP Calculator for Object Detection
https://github.com/devbruce/calc4ap

ap coco evaluation map metric object-detection pascalvoc

Last synced: about 1 month ago
JSON representation

Easy AP Calculator for Object Detection

Awesome Lists containing this project

README

          

# calc4ap

> Pascal VOC ()



## Install via PyPI

```bash
$ pip install calc4ap
```



## How to Use

```python
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)