class_docstr: Switch data pipeline at switch_epoch.
  
  Args:
      switch_epoch (int): switch pipeline at this epoch.
      switch_pipeline (list[dict]): the pipeline to switch to.
class_docstr_tok: ["Switch","data","pipeline","at","switch_epoch",".","Args",":","switch_epoch","(","int",")",":","switch","pipeline","at","this","epoch",".","switch_pipeline","(","list","[","dict","]",")",":","the","pipeline","to","switch","to","."]
code: def __init__(self, switch_epoch, switch_pipeline):
      self.switch_epoch = switch_epoch
      self.switch_pipeline = switch_pipeline
      self._restart_dataloader = False
      self._has_switched = False
  
imports: from mmcv.transforms import Compose
  from mmengine.hooks import Hook
  from mmdet.registry import HOOKS
label_desc: Use image node_id 1 to create a new PipelineSwitchHook object from inherited base classes: Hook with example: obj = PipelineSwitchHook(switch_epoch, switch_pipeline)