Giter Club home page Giter Club logo

mot_evaluation's Introduction

MOT2016/2017 Evaluation Toolkit

It is a python implementation of MOT. However, I only reimplement the 2D evaluation part under MOT16 file format.

The IDF1, IDP, IDR now is not agreed with official toolkit. The original implementation might have an indexing bug in the computation of these metrics.

Metrics

The metrics of MOT16 are based on the following papers:

  1. CLEAR MOT
  • Bernardin, Keni, and Rainer Stiefelhagen. "Evaluating multiple object tracking performance: the CLEAR MOT metrics." Journal on Image and Video Processing 2008 (2008): 1.
  1. MTMC
  • Ristani, Ergys, et al. "Performance measures and a data set for multi-target, multi-camera tracking." European Conference on Computer Vision. Springer, Cham, 2016.

Typical evaluation format is shown as

IDF1  IDP  IDR| Rcll  Prcn   FAR|   GT  MT   PT   ML|    FP    FN   IDs    FM|  MOTA  MOTP MOTAL

Github doesn't support latex formula. To have a better reading experience see here

The meaning of each alias is

  • IDF1(ID F1 Score): $$ IDF1 = \frac{2 * IDTP} {2 * IDTP + IDFP + IDFN} $$
  • IDP(ID Precison): $$ IDP = \frac{IDTP}{IDTP + IDFP} $$
  • IDR(ID Recall): IDR = \frac{IDTP}{IDTP + IDFN}
  • IDTP: The longest associated trajectory matching to a groundtruth trajectory is regarded as the gt's true ID. Then other trajectories matching to this gt is regarded as a 'IDFP'.
  • Rcll(Recall): The ratio of TP boxes to GT boxes. $$ Recall = \frac{TP}{TP + FN} $$
  • Prcn(Precision): The ratio of TP boxes to all detected boxes. $$ Precision = \frac{TP}{TP + FP}$$
  • FAR(False Alarm Ratio): The ratio of FP boxes to frame number. $$FAR = \frac{FP}{\sum_t 1} $$
  • GT(Number of Groundtruth Trajectory): The number of groundtruth trajectories.
  • MT(Number of Mostly Tracked Trajectory): The number of trajectories that have over 80% target tracked.
  • PT(Number of Partially Tracked Trajectory): The number of trajectories that have 20% to 80% target tracked. $$ PT = GT - MT - ML $$
  • ML(Number of Mostly Lost Trajectory): The number of trajectories that have less than 20% target tracked. Total false positive number among all frames. $$ FP = \sum_t \sum_i {fp}_{i, t} $$
  • FN(Number of False Negatives): Total false negative number among all frames. $$ FN = \sum_t \sum_i fn_{i, t} $$
  • IDs(Number of IDSwitch): ID switch number, indicating the times of ID jumps. $$ IDs = \sum_t ids_{i, t}$$
  • FM(Number of Fragmentations): ID switch is the special case of fragmentation when ID jumps. Fragmentation reflects the continousity of trajectories. When trajectories are determinated, it counts all missed target in each frame.
  • MOTA(Number of Multiple Object Tracking Accuracy): A metric reflects the tracking accuracy. It has intergrated consideration of FN, FP, and IDS. $$ T = \sum_t \sum_i gt_{i,t} $$, $$ MOTA = 1 - \frac{FN + FP + IDS}{T}$$
  • MOTP(Number of Multiple Object Tracking Precision): A metric reflects the tracking precision. $$ MOTP = \frac{\sum_{i,t}IoU_{t, i}}{TP} $$
  • MOTAL(MOTA Log) $$MOTA = 1 - \frac{FN + FP + \log_{10}IDS}{T}$$

To Do

  • Supporting MOT15/MOT17 and DukeMTMC file format
  • Optimize the implemenentaion. The current implementation is slow. Any contribution to speed up the code is welcomed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.