faster_rcnn.py 708 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from .two_stage import TwoStageDetector


class FasterRCNN(TwoStageDetector):

    def __init__(self,
                 backbone,
                 neck,
                 rpn_head,
                 bbox_roi_extractor,
                 bbox_head,
                 train_cfg,
                 test_cfg,
                 pretrained=None):
        super(FasterRCNN, self).__init__(
                    backbone=backbone,
                    neck=neck,
                    rpn_head=rpn_head,
                    bbox_roi_extractor=bbox_roi_extractor,
                    bbox_head=bbox_head,
                    train_cfg=train_cfg,
                    test_cfg=test_cfg,
                    pretrained=pretrained)