class_docstr: Mask head for `SCNet <https://arxiv.org/abs/2012.10150>`_.
  
  Args:
      conv_to_res (bool, optional): if True, change the conv layers to
          ``SimplifiedBasicBlock``.
class_docstr_tok: ["Mask","head","for","`","SCNet","<","https",":","\/\/arxiv.org\/abs\/2012.10150",">","`","_",".","Args",":","conv_to_res","(","bool",",","optional",")",":","if","True",",","change","the","conv","layers","to","``","SimplifiedBasicBlock","``","."]
code: def __init__(self, conv_to_res: bool = True, **kwargs) -> None:
      super().__init__(**kwargs)
      self.conv_to_res = conv_to_res
      if self.conv_to_res:
          num_res_blocks = self.num_convs // 2
          self.convs = ResLayer(
              SimplifiedBasicBlock,
              self.in_channels,
              self.conv_out_channels,
              num_res_blocks,
              conv_cfg=self.conv_cfg,
              norm_cfg=self.norm_cfg,
          )
          self.num_convs = num_res_blocks
  
imports: from mmdet.models.layers import ResLayer, SimplifiedBasicBlock
  from mmdet.registry import MODELS
  from .fused_semantic_head import FusedSemanticHead
label_desc: Use image node_id 1 to create a new SCNetSemanticHead object from inherited base classes: FusedSemanticHead with example: obj = SCNetSemanticHead(conv_to_res)