class_docstr: Identical to StandardROIHeads, except for some weights conversion code to
  handle old models.
class_docstr_tok: ["Identical","to","StandardROIHeads",",","except","for","some","weights","conversion","code","to","handle","old","models","."]
code: def _load_from_state_dict(
      self,
      state_dict,
      prefix,
      local_metadata,
      strict,
      missing_keys,
      unexpected_keys,
      error_msgs,
  ):
      version = local_metadata.get("version", None)
      if version is None or version < 2:
          logger = logging.getLogger(__name__)
          logger.warning(
              "Weight format of PointRend models have changed! "
              "Please upgrade your models. Applying automatic conversion now ..."
          )
          for k in list(state_dict.keys()):
              newk = k
              if k.startswith(prefix + "mask_point_head"):
                  newk = k.replace(
                      prefix + "mask_point_head",
                      prefix + "mask_head.point_head",
                  )
              if k.startswith(prefix + "mask_coarse_head"):
                  newk = k.replace(
                      prefix + "mask_coarse_head",
                      prefix + "mask_head.coarse_head",
                  )
              if newk != k:
                  state_dict[newk] = state_dict[k]
                  del state_dict[k]
  
imports: import logging
  from detectron2.modeling import ROI_HEADS_REGISTRY, StandardROIHeads
label_desc: Use image node_id 1 for calling the PointRendROIHeads obj's underlying member method code with example usage: obj._load_from_state_dict(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs) without return types