class_docstr: The quasi-dense track head.
docstr: Initialize assigner and sampler.
docstr_tok: ["Initialize","assigner","and","sampler","."]
code: def init_assigner_sampler(self) -> None:
      """Initialize assigner and sampler."""
      self.bbox_assigner = None
      self.bbox_sampler = None
      if self.train_cfg:
          self.bbox_assigner = TASK_UTILS.build(self.train_cfg.assigner)
          self.bbox_sampler = TASK_UTILS.build(
              self.train_cfg.sampler, default_args=dict(context=self)
          )
  
file_path: mmdetection/mmdet/models/tracking_heads/quasi_dense_track_head.py
imports: from typing import List, Optional
  from mmengine.model import BaseModule
  from torch import Tensor
  from mmdet.registry import MODELS, TASK_UTILS
  from mmdet.structures import TrackSampleList
  from mmdet.structures.bbox import bbox2roi
  from mmdet.utils import InstanceList
label_desc: Use image node_id 3 for calling the QuasiDenseTrackHead obj's underlying member method code with example usage: obj.init_assigner_sampler() without return types