class_docstr: Implementation of the BadDet Object Generation Attack.
  
  | Paper link: https://arxiv.org/abs/2205.14497
docstr: Creates a new BadDet Object Generation Attack
  
  :param backdoor: the backdoor chosen for this attack.
  :param bbox_height: The height of the false-positive bounding box.
  :param bbox_width: The width of the false-positive bounding box.
  :param class_target: The target label to which the poisoned model needs to misclassify.
  :param percent_poison: The ratio of samples to poison in the source class, with range [0, 1].
  :param channels_first: Set channels first or last.
  :param verbose: Show progress bars.
code: def __init__(
      self,
      backdoor: PoisoningAttackBackdoor,
      bbox_height: int,
      bbox_width: int,
      class_target: int = 1,
      percent_poison: float = 0.3,
      channels_first: bool = False,
      verbose: bool = False,
  ) -> None:
      """
      Creates a new BadDet Object Generation Attack
  
      :param backdoor: the backdoor chosen for this attack.
      :param bbox_height: The height of the false-positive bounding box.
      :param bbox_width: The width of the false-positive bounding box.
      :param class_target: The target label to which the poisoned model needs to misclassify.
      :param percent_poison: The ratio of samples to poison in the source class, with range [0, 1].
      :param channels_first: Set channels first or last.
      :param verbose: Show progress bars.
      """
      super().__init__()
      self.backdoor = backdoor
      self.bbox_height = bbox_height
      self.bbox_width = bbox_width
      self.class_target = class_target
      self.percent_poison = percent_poison
      self.channels_first = channels_first
      self.verbose = verbose
      self._check_params()
  
file_path: adversarial-robustness-toolbox/art/attacks/poisoning/bad_det/bad_det_oga.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  from typing import Dict, List, Tuple, Union
  import numpy
  from tqdm.auto import tqdm
  from art.attacks.attack import PoisoningAttackObjectDetector
  from art.attacks.poisoning.backdoor_attack import PoisoningAttackBackdoor
label_desc: Use image node_id 1 to create a new BadDetObjectGenerationAttack object from inherited base classes: PoisoningAttackObjectDetector with example: obj = BadDetObjectGenerationAttack(backdoor, bbox_height, bbox_width, class_target, percent_poison, channels_first, verbose)