class_docstr: Tracker for SORT/DeepSORT.
  
  Args:
      obj_score_thr (float, optional): Threshold to filter the objects.
          Defaults to 0.3.
      motion (dict): Configuration of motion. Defaults to None.
      reid (dict, optional): Configuration for the ReID model.
          - num_samples (int, optional): Number of samples to calculate the
              feature embeddings of a track. Default to 10.
          - image_scale (tuple, optional): Input scale of the ReID model.
              Default to (256, 128).
          - img_norm_cfg (dict, optional): Configuration to normalize the
              input. Default to None.
          - match_score_thr (float, optional): Similarity threshold for the
              matching process. Default to 2.0.
      match_iou_thr (float, optional): Threshold of the IoU matching process.
          Defaults to 0.7.
      num_tentatives (int, optional): Number of continuous frames to confirm
          a track. Defaults to 3.
class_docstr_tok: ["Tracker","for","SORT\/DeepSORT",".","Args",":","obj_score_thr","(","float",",","optional",")",":","Threshold","to","filter","the","objects",".","Defaults","to","0.3.","motion","(","dict",")",":","Configuration","of","motion",".","Defaults","to","None",".","reid","(","dict",",","optional",")",":","Configuration","for","the","ReID","model",".","-","num_samples","(","int",",","optional",")",":","Number","of","samples","to","calculate","the","feature","embeddings","of","a","track",".","Default","to","10",".","-","image_scale","(","tuple",",","optional",")",":","Input","scale","of","the","ReID","model",".","Default","to","(","256",",","128",")",".","-","img_norm_cfg","(","dict",",","optional",")",":","Configuration","to","normalize","the","input",".","Default","to","None",".","-","match_score_thr","(","float",",","optional",")",":","Similarity","threshold","for","the","matching","process",".","Default","to","2.0.","match_iou_thr","(","float",",","optional",")",":","Threshold","of","the","IoU","matching","process",".","Defaults","to","0.7.","num_tentatives","(","int",",","optional",")",":","Number","of","continuous","frames","to","confirm","a","track",".","Defaults","to","3","."]
docstr: Initialize a track.
docstr_tok: ["Initialize","a","track","."]
code: def init_track(self, id: int, obj: Tuple[Tensor]) -> None:
      """Initialize a track."""
      super().init_track(id, obj)
      self.tracks[id].tentative = True
      bbox = bbox_xyxy_to_cxcyah(
          self.tracks[id].bboxes[-1]
      )  # size = (1, 4)
      assert bbox.ndim == 2 and bbox.shape[0] == 1
      bbox = bbox.squeeze(0).cpu().numpy()
      (
          self.tracks[id].mean,
          self.tracks[id].covariance,
      ) = self.kf.initiate(bbox)
  
file_path: mmdetection/mmdet/models/trackers/sort_tracker.py
imports: from typing import List, Optional, Tuple
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from torch import Tensor
  from mmdet.registry import MODELS, TASK_UTILS
  from mmdet.structures import DetDataSample
  from mmdet.structures.bbox import bbox_overlaps, bbox_xyxy_to_cxcyah
  from mmdet.utils import OptConfigType
  from ..utils import imrenormalize
  from .base_tracker import BaseTracker
label_desc: Use image node_id 3 for calling the SORTTracker obj's underlying member method code with example usage: obj.init_track(id, obj) without return types