You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

panoptic_fpn.py 1.1 kB

2 years ago
12345678910111213141516171819202122232425262728293031323334
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from ..builder import DETECTORS
  3. from .panoptic_two_stage_segmentor import TwoStagePanopticSegmentor
  4. @DETECTORS.register_module()
  5. class PanopticFPN(TwoStagePanopticSegmentor):
  6. r"""Implementation of `Panoptic feature pyramid
  7. networks <https://arxiv.org/pdf/1901.02446>`_"""
  8. def __init__(
  9. self,
  10. backbone,
  11. neck=None,
  12. rpn_head=None,
  13. roi_head=None,
  14. train_cfg=None,
  15. test_cfg=None,
  16. pretrained=None,
  17. init_cfg=None,
  18. # for panoptic segmentation
  19. semantic_head=None,
  20. panoptic_fusion_head=None):
  21. super(PanopticFPN, self).__init__(
  22. backbone=backbone,
  23. neck=neck,
  24. rpn_head=rpn_head,
  25. roi_head=roi_head,
  26. train_cfg=train_cfg,
  27. test_cfg=test_cfg,
  28. pretrained=pretrained,
  29. init_cfg=init_cfg,
  30. semantic_head=semantic_head,
  31. panoptic_fusion_head=panoptic_fusion_head)

No Description

Contributors (3)