class_docstr: Base class for instance masks.
class_docstr_tok: ["Base","class","for","instance","masks","."]
docstr: Resize masks to the given out_shape.
  
  Args:
      out_shape: Target (h, w) of resized mask.
      interpolation (str): See :func:`mmcv.imresize`.
  
  Returns:
      BaseInstanceMasks: The resized masks.
docstr_tok: ["Resize","masks","to","the","given","out_shape",".","Args",":","out_shape",":","Target","(","h",",","w",")","of","resized","mask",".","interpolation","(","str",")",":","See",":","func",":","`","mmcv.imresize","`",".","Returns",":","BaseInstanceMasks",":","The","resized","masks","."]
code: def resize(self, out_shape, interpolation="nearest"):
      """Resize masks to the given out_shape.
  
      Args:
          out_shape: Target (h, w) of resized mask.
          interpolation (str): See :func:`mmcv.imresize`.
  
      Returns:
          BaseInstanceMasks: The resized masks.
      """
      pass
  
imports: from abc import ABCMeta, abstractmethod
  import cv2
  import mmcv
  import numpy
  import pycocotools.mask
  import torch
  from mmcv.ops.roi_align import roi_align
label_desc: Use image node_id 2 for calling the BaseInstanceMasks obj's underlying member method code with example usage: obj.resize(out_shape, interpolation) without return types