class_docstr: Data augmentation method in `InstaBoost: Boosting Instance
  Segmentation Via Probability Map Guided Copy-Pasting
  <https://arxiv.org/abs/1908.07801>`_.
  
  Refer to https://github.com/GothicAi/Instaboost for implementation details.
code: def __init__(
      self,
      action_candidate=("normal", "horizontal", "skip"),
      action_prob=(1, 0, 0),
      scale=(0.8, 1.2),
      dx=15,
      dy=15,
      theta=(-1, 1),
      color_prob=0.5,
      hflag=False,
      aug_ratio=0.5,
  ):
      try:
          import instaboostfast as instaboost
      except ImportError:
          raise ImportError(
              'Please run "pip install instaboostfast" '
              "to install instaboostfast first for instaboost augmentation."
          )
      self.cfg = instaboost.InstaBoostConfig(
          action_candidate,
          action_prob,
          scale,
          dx,
          dy,
          theta,
          color_prob,
          hflag,
      )
      self.aug_ratio = aug_ratio
  
file_path: insightface/detection/scrfd/mmdet/datasets/pipelines/instaboost.py
imports: import numpy
  from ..builder import PIPELINES
label_desc: Use image node_id 1 to create a new InstaBoost object from inherited base classes: object with example: obj = InstaBoost(action_candidate, action_prob, scale, dx, dy, theta, color_prob, hflag, aug_ratio)