Skip to main content

Evaluation for the Pure AB-3D-MOT.

Reason this release was yanked:

Better README in 2.2.4

Project description

Evaluation of a base of 3D multiple-object tracking (AB3DMOT)

logo

Evaluation part of the AB3DMOT by Xinshuo Weng original repository. The package is dedicated to calculation of the tracking quality metrics for 3D tracking with KITTI data set. Apart from the refactored evaluation part of the AB3DMOT, a binary Classifier of the tracking results via Instrumented Association (ClavIA) can be used on the same tracker.

Supporting publication

Using the codes from this repository, the user can reproduce the results of the publication "Simple evaluation of association quality in tracking-by-detection", by Peter Koval, Nerea Aranjuelo Ansa, Particia Javierre del Rio, and Ainhoa Menendez Arechalde.

Installation

Clone the repository, then execute uv sync standing in the root folder of the repository. Note that you might need to install the package manager uv by Astral Software Inc. After installation a number of entry points are exposed in the shell. To reproduce the results of the Supporting publication the following command-line scripts are used

  • run-ab-3d-mot-with-clavia
  • batch-run-ab-3d-mot
  • batch-run-ab-3d-mot-annotations

The entry points expose the --help option producing brief usage descriptions. For example,

run-ab-3d-mot-with-clavia --help

produces

help-usage

Compute F1-scores

Evaluation with the original ClavIA and the reference ClearMOT methodologies can be preformed.

Compute F1-scores with ClavIA

To compute the F1 scores with ClavIA, please run

run-ab-3d-mot-with-clavia assets/annotations/kitti/training/*.txt

This command executes the instrumented AB-3D-MOT tracker consuming KITTI annotations. The output of the tracking is evaluated using ClavIA methodology. After a minute the script produces the terminal output

Confusion matrix TP 30601 TN 592 FP 0 FN 70
     accuracy 0.997761
    precision 1.0000
       recall 0.9977
     f1-score 0.9989

By default, we run for a car object category. To select the cyclist or pedestrian category, use the option --category-obj, or -c for short

run-ab-3d-mot-with-clavia assets/annotations/kitti/training/*.txt -c cyclist

This time, the script runs faster and produces

     ...
     f1-score 0.9969

By default, the tracker is provided with category-dependent parameters as in the reference implementation. However, the script run-ab-3d-mot-with-clavia allows to adjust the association parameters of the pure AB-3D-MOT tracker such as association threshold and matching algorithm via command-line options --threshold, -t and --algorithm, -a correspondingly. For example, to run the tracker with the association threshold $-0.2$ using the Hungarian matching algorithm on pedestrians, we should command

run-ab-3d-mot-with-clavia assets/annotations/kitti/training/*.txt -c pedestrian -t -0.2 -a hungarian

This produces terminal output ending with

     ...
     f1-score 0.9404

Compute F1-scores with ClearMOT

To compute the F1 scores with ClearMOT, please run

batch-run-ab-3d-mot assets/detections/kitti/point-r-cnn-training/car/*.txt
batch-eval-ab-3d-mot assets/annotations/kitti/training/*.txt

The first command runs the pure AB-3D-MOT tracker consuming detections of the car objects category. The result of the tracking will be stored in the files tracking-kitti/car/*.txt. The second command runs the ClearMOT evaluation using the tracking output of the car category and the corresponding split (training split) of KITTI annotations. After about 10 minutes, the evaluation produces a final report including the F1 score

...
Recall                                                                    0.8839
Precision                                                                 0.9521
F1                                                                        0.9167
False Alarm Rate                                                          0.1594
...

To compute the F1 scores in cyclist category, please run

batch-run-ab-3d-mot assets/detections/kitti/point-r-cnn-training/cyclist/*.txt
batch-eval-ab-3d-mot assets/annotations/kitti/training/*.txt -c cyclist

The first command runs the pure AB-3D-MOT tracker consuming detections of the cyclist objects category. The result of the tracking will be stored in the files tracking-kitti/cyclist/*.txt. The second command runs the ClearMOT evaluation using the tracking output of the cyclist category and the corresponding split of KITTI annotations. Final report includes the F1 score

...
F1                                                                        0.8390
...

By default, the tracker is provided with category-dependent parameters as in the reference implementation. However, the script batch-run-ab-3d-mot allows to adjust the association parameters of the pure AB-3D-MOT tracker such as association threshold and matching algorithm via command-line options --threshold, -t and --algorithm, -a correspondingly. For example, to run the tracker with the association threshold $-0.2$ using greedy matching algorithm on pedestrians, we command

batch-run-ab-3d-mot assets/detections/kitti/point-r-cnn-training/pedestrian/*.txt -t -0.2 -a greedy
batch-eval-ab-3d-mot assets/annotations/kitti/training/*.txt -c pedestrian 

Final report includes the F1 score

...
F1                                                                        0.8047
...

Apart from the detections, the pure AB-3D-MOT tracker could be fed with KITTI annotations. To run the pure AB-3D-MOT consuming annotations we use the script batch-run-ab-3d-mot-annotations. For example, to run the tracker for pedestrian category with the association threshold $-0.3$ using the Hungarian matching algorithm, we execute two commands

batch-run-ab-3d-mot-annotations assets/annotations/kitti/training/*.txt -c pedestrian -t -0.3 -a hungarian
batch-eval-ab-3d-mot assets/annotations/kitti/training/*.txt -c pedestrian

Final report of the ClearMOT contains the $F1=0.9576$

...
F1                                                                        0.9576
...

Note that the experiments run with different association parameters (threshold and matching algorithms) are stored to the same files. Therefore, we recommend removing tracking and evaluation results before each experiment

rm -rf tracking-kitti/ evaluation-kitti/

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

eval_ab_3d_mot-2.2.3.tar.gz (10.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eval_ab_3d_mot-2.2.3-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file eval_ab_3d_mot-2.2.3.tar.gz.

File metadata

  • Download URL: eval_ab_3d_mot-2.2.3.tar.gz
  • Upload date:
  • Size: 10.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for eval_ab_3d_mot-2.2.3.tar.gz
Algorithm Hash digest
SHA256 2b6c14bfe6c56d409492f48e9740052a901d806cc852741d50b2866a9a109f47
MD5 18fff024519156b8886883041bc943a9
BLAKE2b-256 2cd63547901fece53ea7fd2ac72a6817d24a4eef9a69eb8cc495877cc213af95

See more details on using hashes here.

File details

Details for the file eval_ab_3d_mot-2.2.3-py3-none-any.whl.

File metadata

  • Download URL: eval_ab_3d_mot-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for eval_ab_3d_mot-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 95364ac33850dfb1bd030dfbe9b6ffe6062ec353c7ad7f9942960ca50effa322
MD5 ece523b0a6c65a23de7fde8004f5dbda
BLAKE2b-256 4969e5ad30835ddd51f16ffdf76ca98650e0c9531a70d079ac2687768f8bc089

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page