-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7fdcff
commit b1ecb0c
Showing
8 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""QDTrack configs tests.""" | ||
import unittest | ||
|
||
from .util import compare_configs | ||
|
||
|
||
class TestQDTrackConfig(unittest.TestCase): | ||
"""Tests the content of the provided configs for QDTrack.""" | ||
|
||
config_prefix = "qdtrack" | ||
gt_config_path = "tests/vis4d-test-data/config_test/qdtrack" | ||
varying_keys = ["save_prefix", "output_dir", "version", "timestamp"] | ||
|
||
def test_frcnn_r50_fpn_augs_1x_bdd100k(self) -> None: | ||
"""Test the config for QDTrack Faster-RCNN. | ||
This instantiates the config and compares it to a ground truth. | ||
""" | ||
compare_configs( | ||
f"{self.config_prefix}.qdtrack_frcnn_r50_fpn_augs_1x_bdd100k", | ||
f"{self.gt_config_path}/" | ||
+ "qdtrack_frcnn_r50_fpn_augs_1x_bdd100k.yaml", | ||
self.varying_keys, | ||
) | ||
|
||
def test_yolox_x_50e_bdd100k(self) -> None: | ||
"""Test the config for QDTrack YOLOX. | ||
This instantiates the config and compares it to a ground truth. | ||
""" | ||
compare_configs( | ||
f"{self.config_prefix}.qdtrack_yolox_x_50e_bdd100k", | ||
f"{self.gt_config_path}/qdtrack_yolox_x_50e_bdd100k.yaml", | ||
self.varying_keys, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
"""QDTrack.""" | ||
from . import ( | ||
qdtrack_frcnn_r50_fpn_augs_1x_bdd100k, | ||
qdtrack_yolox_x_50e_bdd100k, | ||
) | ||
|
||
# Lists of available models in BDD100K Model Zoo. | ||
AVAILABLE_MODELS = { | ||
"qdtrack_frcnn_r50_fpn_augs_1x_bdd100k": ( | ||
qdtrack_frcnn_r50_fpn_augs_1x_bdd100k | ||
), | ||
"qdtrack_yolox_x_50e_bdd100k": qdtrack_yolox_x_50e_bdd100k, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters