def __init__(
        self,
        estimator: "PYTORCH_OBJECT_DETECTOR_TYPE",
        eps: float,
        max_iter: int,
        num_grid: int,
        batch_size: int,
        threshold: float,
    ) -> None:
        """
        Create an overload attack instance.

        :param estimator: A PyTorch object detection estimator for a YOLO5 model.
        :param eps: Maximum perturbation that the attacker can introduce.
        :param max_iter: The maximum number of iterations.
        :param num_grid: The number of grids for width and high dimension.
        :param batch_size: Size of the batch on which adversarial samples are generated.
        :param threshold: IoU threshold.
        """
        super().__init__(estimator=estimator)
        self.eps = eps
        self.max_iter = max_iter
        self.num_grid = num_grid
        self.batch_size = batch_size
        self.threshold = threshold
        self._check_params()

        Create an overload attack instance.

        :param estimator: A PyTorch object detection estimator for a YOLO5 model.
        :param eps: Maximum perturbation that the attacker can introduce.
        :param max_iter: The maximum number of iterations.
        :param num_grid: The number of grids for width and high dimension.
        :param batch_size: Size of the batch on which adversarial samples are generated.
        :param threshold: IoU threshold.
        
art/attacks/evasion/overload/overload.py