Skip to content

Instantly share code, notes, and snippets.

View Trotts's full-sized avatar

Cameron Trotter Trotts

  • British Antarctic Survey
  • Newcastle Upn Tyne, UK
View GitHub Profile
@sadjadasghari
sadjadasghari / calculate_mean_ap.py
Last active February 21, 2022 15:42 — forked from tarlen5/calculate_mean_ap.py
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
revised by: Sadjad Asghari Esfeden
date: 10 Sep 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
@tarlen5
tarlen5 / calculate_mean_ap.py
Last active September 17, 2024 07:44
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
> python calculate_mean_ap.py
Will display a plot of precision vs recall curves at 10 distinct IoU thresholds as well as output