class_docstr: Implement the basic Mask R-CNN losses and inference logic described in :paper:`Mask R-CNN`
class_docstr_tok: ["Implement","the","basic","Mask","R-CNN","losses","and","inference","logic","described","in",":","paper",":","`","Mask","R-CNN","`"]
code: def from_config(cls, cfg, input_shape):
      return {"vis_period": cfg.VIS_PERIOD}
  
imports: from typing import List
  import fvcore.nn.weight_init
  import torch
  from torch import nn
  from torch.nn import functional
  from detectron2.config import configurable
  from detectron2.layers import Conv2d, ConvTranspose2d, ShapeSpec, cat, get_norm
  from detectron2.layers.wrappers import move_device_like
  from detectron2.structures import Instances
  from detectron2.utils.events import get_event_storage
  from detectron2.utils.registry import Registry
label_desc: Use image node_id 2 for calling the BaseMaskRCNNHead obj's underlying member method code with example usage: obj.from_config(cls, cfg, input_shape) and returns: dict