1234567891011121314151617181920212223242526272829303132333435 |
- # Copyright (c) OpenMMLab. All rights reserved.
- from mmengine.config import ConfigDict
- from mmdet.registry import MODELS
- from mmdet.utils import OptConfigType, OptMultiConfig
- from .two_stage import TwoStageDetector
- @MODELS.register_module()
- class PointRend(TwoStageDetector):
- """PointRend: Image Segmentation as Rendering
- This detector is the implementation of
- `PointRend <https://arxiv.org/abs/1912.08193>`_.
- """
- def __init__(self,
- backbone: ConfigDict,
- rpn_head: ConfigDict,
- roi_head: ConfigDict,
- train_cfg: ConfigDict,
- test_cfg: ConfigDict,
- neck: OptConfigType = None,
- data_preprocessor: OptConfigType = None,
- init_cfg: OptMultiConfig = None) -> None:
- super().__init__(
- backbone=backbone,
- neck=neck,
- rpn_head=rpn_head,
- roi_head=roi_head,
- train_cfg=train_cfg,
- test_cfg=test_cfg,
- init_cfg=init_cfg,
- data_preprocessor=data_preprocessor)
|