dgs.models.submission.MOT.MOTSubmission¶
- class dgs.models.submission.MOT.MOTSubmission(config: dict[str, any], path: list[str])[source]¶
Class for creating and appending to a
MOT
-style submission file.Optional Params¶
- bbox_decimals (int, optional):
The number of decimals to save for the bbox coordinates. Default
DEF_VAL["submission"]["MOT"]["bbox_decimals"]
.- score_decimals (int, optional):
The number of decimals to save for the score value. Is only used if the score is present and
score >= 0
. DefaultDEF_VAL["submission"]["MOT"]["score_decimals"]
.
- __init__(config: dict[str, any], path: list[str]) None [source]¶
Methods
append
(s, *_args, **_kwargs)Given a new state containing the detections of one image, append the data to the submission file.
clear
()Clear the data.
configure_torch_module
(module[, train])Set compute mode and send model to the device or multiple parallel devices if applicable.
save
()Save the current data to the given filepath.
Terminate the submission file creation.
validate_params
(validations[, attrib_name])Given per key validations, validate this module's parameters.
Attributes
Get the device of this module.
Get whether this module is set to training-mode.
Get the name of the module.
Get the name of the module.
Get the escaped name of the module usable in filepaths by replacing spaces and underscores.
Get the (floating point) precision used in multiple parts of this module.
A list containing the values as tuple, like:
tuple(<frame>, <id>, <bb_left>, <bb_top>, <bb_width>, <bb_height>, <conf>, <x>, <y>, <z>)