Skip to content

Commit e441352

Browse files
authored
Merge pull request #20 from kovalp/use-pure-ab-3d-mot-2
Use pure ab 3d mot 2
2 parents 45fa0b0 + 4f87995 commit e441352

9 files changed

Lines changed: 57 additions & 234 deletions

File tree

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "1.0.0"
2+
current_version = "2.0.0"
33
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
44
serialize = ["{major}.{minor}.{patch}"]
55
search = "{current_version}"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.0.0
2+
3+
- Use the AssociationQuality class from the package `association-quality-clavia`.
4+
15
# 1.0.0
26

37
- Added the module `association_quality` with an implementation of the classifier.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The purpose of the package is to enable calculation of the detection+tracking qu
55
metrics for 3D tracking with KITTI data set.
66

77
Apart from the refactored evaluation part of the AB3DMOT, a binary classifier
8-
of the association outcomes is included. See `association_quality` submodule.
8+
of the association outcomes is included. The corresponding CLI needs to be implemented still.
99

1010
## Installation
1111

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "eval-ab-3d-mot"
3-
version = "1.0.0"
3+
version = "2.0.0"
44
description = "Evaluation for the Pure AB-3D-MOT."
55
readme = "README.md"
66
authors = [
@@ -15,7 +15,7 @@ requires-python = ">=3.8"
1515
dependencies = [
1616
"binary-classification-ratios>=0.3.0",
1717
"munkres>=1.1.4",
18-
"pure-ab-3d-mot>=1.0.0",
18+
"pure-ab-3d-mot>=2.0.0",
1919
"pytest-mock>=3.14.1",
2020
"rich>=14.2.0",
2121
"rich-argparse>=1.7.1",
@@ -40,7 +40,7 @@ package = true
4040

4141
[dependency-groups]
4242
dev = [
43-
"bump-my-version>=1.2.4; python_version < '3.14'",
43+
"bump-my-version>=1.2.4",
4444
"pytest>=8.3.5",
4545
"pytest-cov>=5.0.0",
4646
"ruff>=0.14.0",

src/eval_ab_3d_mot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""."""
22

3-
__version__ = '1.0.0'
3+
__version__ = '2.0.0'

src/eval_ab_3d_mot/association_quality.py

Lines changed: 0 additions & 110 deletions
This file was deleted.

test/test_association_quality.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

test/test_run_nu_scenes_1_757.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
import numpy as np
66

7-
from pure_ab_3d_mot.clavia_conventions import ANN_IDS
8-
from pure_ab_3d_mot.str_const import DETS, INFO
7+
from association_quality_clavia import AssociationQuality
8+
from binary_classification_ratios import BinaryClassificationRatios
9+
from pure_ab_3d_mot.str_const import ANN_IDS, DETS, INFO
910
from pure_ab_3d_mot.tracker import Ab3DMot
1011

11-
from eval_ab_3d_mot.association_quality import AssociationQuality
1212
from eval_ab_3d_mot.cli.common.opt_param import fill_r_cnn_opt_param
1313
from eval_ab_3d_mot.kitti_category import KittiCategory
1414

@@ -34,7 +34,8 @@ def test_run_1_757(files_dir: Path) -> None:
3434
is_det_supplied = track.ann_id in ids_r
3535
classifier.classify(track.ann_id, track.upd_id, is_det_supplied)
3636

37-
ratios = classifier.get_classification_ratios()
37+
confusion_mat = classifier.get_confusion_matrix()
38+
ratios = BinaryClassificationRatios(**confusion_mat)
3839
print(ratios.get_summary())
3940
ratios.assert_min(0.78366, 1.000, 0.7789)
4041
assert len(tracker.trackers) == 13

0 commit comments

Comments
 (0)