code: def __init__(
      self,
      use_h=True,
      use_w=True,
      rotate=1,
      offset=False,
      ratio=0.5,
      mode=1,
      prob=0.7,
      upper_iter=360000,
  ):
      super(Gridmask, self).__init__()
      self.use_h = use_h
      self.use_w = use_w
      self.rotate = rotate
      self.offset = offset
      self.ratio = ratio
      self.mode = mode
      self.prob = prob
      self.st_prob = prob
      self.upper_iter = upper_iter
  
file_path: PaddleDetection/ppdet/data/transform/gridmask_utils.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 to create a new Gridmask object from inherited base classes: object with example: obj = Gridmask(use_h, use_w, rotate, offset, ratio, mode, prob, upper_iter)