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. Default DEF_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()

Terminate the submission file creation.

validate_params(validations[, attrib_name])

Given per key validations, validate this module's parameters.

Attributes

device

Get the device of this module.

is_training

Get whether this module is set to training-mode.

module_name

Get the name of the module.

module_type

name

Get the name of the module.

name_safe

Get the escaped name of the module usable in filepaths by replacing spaces and underscores.

precision

Get the (floating point) precision used in multiple parts of this module.

data

A list containing the values as tuple, like: tuple(<frame>, <id>, <bb_left>, <bb_top>, <bb_width>, <bb_height>, <conf>, <x>, <y>, <z>)

frame_id

fp

format