class_docstr: SOLOv2 network, see https://arxiv.org/abs/2003.10152
  
  Args:
      backbone (object): an backbone instance
      solov2_head (object): an `SOLOv2Head` instance
      mask_head (object): an `SOLOv2MaskHead` instance
      neck (object): neck of network, such as feature pyramid network instance
class_docstr_tok: ["SOLOv2","network",",","see","https",":","\/\/arxiv.org\/abs\/2003.10152","Args",":","backbone","(","object",")",":","an","backbone","instance","solov2_head","(","object",")",":","an","`","SOLOv2Head","`","instance","mask_head","(","object",")",":","an","`","SOLOv2MaskHead","`","instance","neck","(","object",")",":","neck","of","network",",","such","as","feature","pyramid","network","instance"]
code: def from_config(cls, cfg, *args, **kwargs):
      backbone = create(cfg["backbone"])
  
      kwargs = {"input_shape": backbone.out_shape}
      neck = create(cfg["neck"], **kwargs)
  
      kwargs = {"input_shape": neck.out_shape}
      solov2_head = create(cfg["solov2_head"], **kwargs)
      mask_head = create(cfg["mask_head"], **kwargs)
  
      return {
          "backbone": backbone,
          "neck": neck,
          "solov2_head": solov2_head,
          "mask_head": mask_head,
      }
  
file_path: PaddleDetection/ppdet/modeling/architectures/solov2.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 SOLOv2 obj's underlying member method code with example usage: obj.from_config(cls, cfg) and returns: dict