vis4d.op.track.assignment¶
Track assignment functions.
Functions
|
Greedy assignment of detections to tracks given affinities. |
Classes
Global counter for track ids. |
- class TrackIDCounter[source]¶
Global counter for track ids.
Holds a count of tracks to enable unique and contiguous track ids starting from zero.
- classmethod get_ids(num_ids, device=device(type='cpu'))[source]¶
Generate a num_ids number of new unique tracking ids.
- Parameters:
num_ids (int) – number of ids
device (torch.device, optional) – Device to create ids on. Defaults to torch.device(“cpu”).
- Returns:
Tensor of new contiguous track ids.
- Return type:
torch.Tensor