class_docstr: Mask R-CNN network, see https://arxiv.org/abs/1703.06870
  
  Args:
      backbone (object): backbone instance
      rpn_head (object): `RPNHead` instance
      bbox_head (object): `BBoxHead` instance
      mask_head (object): `MaskHead` instance
      bbox_post_process (object): `BBoxPostProcess` instance
      mask_post_process (object): `MaskPostProcess` instance
      neck (object): 'FPN' instance
class_docstr_tok: ["Mask","R-CNN","network",",","see","https",":","\/\/arxiv.org\/abs\/1703.06870","Args",":","backbone","(","object",")",":","backbone","instance","rpn_head","(","object",")",":","`","RPNHead","`","instance","bbox_head","(","object",")",":","`","BBoxHead","`","instance","mask_head","(","object",")",":","`","MaskHead","`","instance","bbox_post_process","(","object",")",":","`","BBoxPostProcess","`","instance","mask_post_process","(","object",")",":","`","MaskPostProcess","`","instance","neck","(","object",")",":","'FPN","'","instance"]
code: def from_config(cls, cfg, *args, **kwargs):
      backbone = create(cfg["backbone"])
      kwargs = {"input_shape": backbone.out_shape}
      neck = cfg["neck"] and create(cfg["neck"], **kwargs)
  
      out_shape = neck and neck.out_shape or backbone.out_shape
      kwargs = {"input_shape": out_shape}
      rpn_head = create(cfg["rpn_head"], **kwargs)
      bbox_head = create(cfg["bbox_head"], **kwargs)
  
      out_shape = neck and out_shape or bbox_head.get_head().out_shape
      kwargs = {"input_shape": out_shape}
      mask_head = create(cfg["mask_head"], **kwargs)
      return {
          "backbone": backbone,
          "neck": neck,
          "rpn_head": rpn_head,
          "bbox_head": bbox_head,
          "mask_head": mask_head,
      }
  
file_path: PaddleDetection/ppdet/modeling/architectures/mask_rcnn.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from ppdet.core.workspace import register, create
  from .meta_arch import BaseArch
label_desc: Use image node_id 2 for calling the MaskRCNN obj's underlying member method code with example usage: obj.from_config(cls, cfg) and returns: dict