← 开源
Cartucho

mAP

mean Average Precision - This code evaluates the performance of your neural net for object recognition.

Model DevelopmentDataset engineeringPython
在 GitHub 打开
增长势头
+-224 小时新增 Star-0.1%
2.97k
Star
916
Fork
+-1
本周
12
贡献者
创建于 2018-03-08 · 更新于 2026-10-16 · 今日第 19301 名
主要开发者

Cartucho/mAP 排名第 19,301,有 2,969 个星标。

同类别比较

Cartucho/mAP 排名第 19,301,此处有 8 个同类条目;openai/weak-to-strong 排名第 19,304。

同类别比较
名称排名指标
fkodom/fft-conv-pytorch19,225
语言:
Python
星标数:
524
分叉数:
61
简介:
Implementation of 1D, 2D, and 3D FFT convolutions in PyTorch. Much faster than direct convolutions for large kernel sizes.
lucidrains/local-attention19,238
语言:
Python
星标数:
504
分叉数:
52
简介:
An implementation of local windowed attention for language modeling
PaddlePaddle/Paddle19,247
语言:
C++
星标数:
24,125
分叉数:
6,019
简介:
PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
openai/parameter-golf19,287
语言:
Python
星标数:
5,198
分叉数:
3,248
简介:
Train the smallest LM you can that fits in 16MB. Best model wins!
openai/weak-to-strong19,304
语言:
Python
星标数:
2,545
分叉数:
314
tinghuiz/SfMLearner19,310
语言:
Jupyter Notebook
星标数:
2,014
分叉数:
553
简介:
An unsupervised learning framework for depth and ego-motion estimation from monocular videos
Ewenwan/ORB_SLAM2_SSD_Semantic19,317
语言:
C++
星标数:
1,575
分叉数:
434
简介:
动态语义SLAM 目标检测+VSLAM+光流/多视角几何动态物体检测+octomap地图+目标数据库
arpitbansal297/Cold-Diffusion-Models19,322
语言:
Python
星标数:
1,136
分叉数:
83
简介:
Official implementation of Cold-Diffusion for different transformations in pytorch.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Dataset engineering
关键词Benchmarks, Object detection
星标数2,969
分叉数916
贡献者12
创建日期2018-03-08
更新日期2026-10-16
1 天星标数-2
7 天星标数-1
排名19,301
上次排名8,291
排名变化-11,010
7 天星标排名16,821
上次 7 天星标排名9,320
7 天星标排名变化-7,501
总星标排名4,571
上次总星标排名4,563
总星标排名变化-8
国家UK
README 摘录

mAP (mean Average Precision) This code will evaluate the performance of your neural net for object recognition. In practice, a **higher mAP** value indicates a **better performance** of your neural net, given your ground-truth and set of classes. Citation This project was developed for the following paper, please consider citing it: Table of contents Explanation Prerequisites Quick start Running the code Authors Explanation The performance of your neural net will be judged using the mAP criterium defined in the

PASCAL VOC 2012 competition. We simply adapted the official Matlab code into Python (in our tests they both give the same results). **), we calculate the Average Precision (AP), for each of the classes present in the ground-truth. **), we calculate the mAP (mean Average Precision) value. Calculate AP For each class: First, your neural net **detection-results** are sorted by decreasing confidence and are assigned to **ground-truth objects**. We have "a match" when they share the **same label and

an IoU >= 0. 5** (Intersection over Union greater than 50%). This "match" is considered a true positive if that ground-truth object has not been already used (to avoid multiple detections of the same object). Using this criterium, we calculate the precision/recall curve. g: Then we compute a version of the measured precision/recall curve with **precision monotonically decreasing** (shown in light red), by setting the precision for recall to the maximum precision obtained for any recall . Finally, we

compute the AP as the **area under this curve** (shown in light blue) by numerical integration. No approximation is involved since the curve is piecewise constant. Calculate mAP We calculate the mean of all the AP's, resulting in an mAP value from 0 to 100%. g: Prerequisites You need to install: Python Optional: **plot** the results by installing Matplotlib - Linux, macOS and Windows: show **animation** by installing OpenCV: Quick-start To start using the mAP you need to clone the

repo: Running the code Step by step: 1. Copy the ground-truth files into the folder **input/ground-truth/** 3. Copy the detection-results files into the folder **input/detection-results/** 5. Run the code: Optional (if you want to see the **animation**): 6. Insert the images into the folder **input/images-optional/** PASCAL VOC, Darkflow and YOLO users In the scripts/extra folder you can find additional scripts to convert **PASCAL VOC**, **darkflow** and **YOLO** files into the required

format. Create the ground-truth files Create a separate ground-truth text file for each image. Use **matching names** for the files (e. In these files, each line should be in the following format: The parameter is optional, use it if you want the calculation to ignore a specific detection. txt": Create the detection-results files Create a separate detection-results text file for each image. Use **matching names** for the files (e. In these files, each line should be

in the following format: E.

常见问题

记录了多少星标和分叉?

Cartucho/mAP 有 2,969 个星标和 916 个分叉。

仓库排名是多少?

Cartucho/mAP 排名第 19,301。

记录的语言和类别是什么?

Cartucho/mAP 有 2,969 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

Cartucho/mAP 与 openai/weak-to-strong 比较,后者排名第 19,304,有 2,545 个星标。

README

mAP (mean Average Precision)

This code will evaluate the performance of your neural net for object recognition.

In practice, a higher mAP value indicates a better performance of your neural net, given your ground-truth and set of classes.

Citation

This project was developed for the following paper, please consider citing it:

@INPROCEEDINGS{8594067,
  author={J. {Cartucho} and R. {Ventura} and M. {Veloso}},
  booktitle={2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)}, 
  title={Robust Object Recognition Through Symbiotic Deep Learning In Mobile Robots}, 
  year={2018},
  pages={2336-2341},
}

Table of contents

Explanation

The performance of your neural net will be judged using the mAP criterium defined in the PASCAL VOC 2012 competition. We simply adapted the official Matlab code into Python (in our tests they both give the same results).

First (1.), we calculate the Average Precision (AP), for each of the classes present in the ground-truth. Finally (2.), we calculate the mAP (mean Average Precision) value.

1. Calculate AP

For each class:

First, your neural net detection-results are sorted by decreasing confidence and are assigned to ground-truth objects. We have "a match" when they share the same label and an IoU >= 0.5 (Intersection over Union greater than 50%). This "match" is considered a true positive if that ground-truth object has not been already used (to avoid multiple detections of the same object).

Using this criterium, we calculate the precision/recall curve. E.g:

Then we compute a version of the measured precision/recall curve with precision monotonically decreasing (shown in light red), by setting the precision for recall r to the maximum precision obtained for any recall r' > r.

Finally, we compute the AP as the area under this curve (shown in light blue) by numerical integration. No approximation is involved since the curve is piecewise constant.

2. Calculate mAP

We calculate the mean of all the AP's, resulting in an mAP value from 0 to 100%. E.g:

Prerequisites

You need to install:

Optional:

  • plot the results by installing Matplotlib - Linux, macOS and Windows:
    1. python -mpip install -U pip
    2. python -mpip install -U matplotlib
  • show animation by installing OpenCV:
    1. python -mpip install -U pip
    2. python -mpip install -U opencv-python

Quick-start

To start using the mAP you need to clone the repo:

git clone https://github.com/Cartucho/mAP

Running the code

Step by step:

  1. Create the ground-truth files
  2. Copy the ground-truth files into the folder input/ground-truth/
  3. Create the detection-results files
  4. Copy the detection-results files into the folder input/detection-results/
  5. Run the code: python main.py

Optional (if you want to see the animation):

  1. Insert the images into the folder input/images-optional/

PASCAL VOC, Darkflow and YOLO users

In the scripts/extra folder you can find additional scripts to convert PASCAL VOC, darkflow and YOLO files into the required format.

Create the ground-truth files

  • Create a separate ground-truth text file for each image.
  • Use matching names for the files (e.g. image: "image_1.jpg", ground-truth: "image_1.txt").
  • In these files, each line should be in the following format:
         []
    
  • The difficult parameter is optional, use it if you want the calculation to ignore a specific detection.
  • E.g. "image_1.txt":
    tvmonitor 2 10 173 238
    book 439 157 556 241
    book 437 246 518 351 difficult
    pottedplant 272 190 316 259
    

Create the detection-results files

  • Create a separate detection-results text file for each image.
  • Use matching names for the files (e.g. image: "image_1.jpg", detection-results: "image_1.txt").
  • In these files, each line should be in the following format:
         
    
  • E.g. "image_1.txt":
    tvmonitor 0.471781 0 13 174 244
    cup 0.414941 274 226 301 265
    book 0.460851 429 219 528 247
    chair 0.292345 0 199 88 436
    book 0.269833 433 260 506 336
    

Authors:

  • João Cartucho

    Feel free to contribute

排名相邻
同类项目