Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

calc4ap-1.0.1-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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