class_docstr: Implementation of `TridentNet <https://arxiv.org/abs/1901.01892>`_
code: def __init__(
      self,
      backbone,
      rpn_head,
      roi_head,
      train_cfg,
      test_cfg,
      neck=None,
      pretrained=None,
  ):
      super(TridentFasterRCNN, self).__init__(
          backbone=backbone,
          neck=neck,
          rpn_head=rpn_head,
          roi_head=roi_head,
          train_cfg=train_cfg,
          test_cfg=test_cfg,
          pretrained=pretrained,
      )
      assert self.backbone.num_branch == self.roi_head.num_branch
      assert (
          self.backbone.test_branch_idx == self.roi_head.test_branch_idx
      )
      self.num_branch = self.backbone.num_branch
      self.test_branch_idx = self.backbone.test_branch_idx
  
file_path: insightface/detection/scrfd/mmdet/models/detectors/trident_faster_rcnn.py
imports: from ..builder import DETECTORS
  from .faster_rcnn import FasterRCNN
label_desc: Use image node_id 1 to create a new TridentFasterRCNN object from inherited base classes: FasterRCNN with example: obj = TridentFasterRCNN(backbone, rpn_head, roi_head, train_cfg, test_cfg, neck, pretrained)