dgs.models.submission.posetrack21.PoseTrack21Submission¶
- class dgs.models.submission.posetrack21.PoseTrack21Submission(config: dict[str, any], path: list[str])[source]¶
Class for creating and appending to a
PoseTrack21
-style submission file.- __init__(config: dict[str, any], path: list[str]) None [source]¶
Methods
append
(s, *_args, **_kwargs)Given data, append to the created
PoseTrack21
submission file.clear
()Clear the submission data.
configure_torch_module
(module[, train])Set compute mode and send model to the device or multiple parallel devices if applicable.
Given a
State
, extract data for the 'annotations' list used in the submission file.Given a
State
, extract data for the 'images' used in the submission file.save
()Save the submission data in a file.
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.