引入注册器builder
from ..builder import DETECTORS, build_backbone, build_head, build_neck
通过backbone进行特征提取
def extract_feat(self, img):
"""Directly extract features from the backbone+neck."""
x = self.backbone(img)
if self.with_neck:
x = self.neck(x)
return x
forward_train
有四个子算法对forward_train这个method进行了override,如下:
- sparse_rcnn.py
- trident_faster_rcnn.py
- panoptic_two_stage_segmentor.py
- mpsr.py