IPG: Incremental Patch Generation for Generalized Adversarial Patch Training
Paper • 2508.10946 • Published
Adversarial patches trained against YOLOv5l6 on MS COCO 2017 using the IPG method (arXiv:2508.10946).
This repository contains 25 adversarial patches (64×64 pixels) optimized to reduce object detection confidence using the hiding attack objective.
| Format | Directory | Description |
|---|---|---|
| PyTorch (.pt) | pth/ |
Full checkpoint with training history |
| SafeTensors | safetensors/ |
Optimized tensor format |
| Combined SafeTensors | all_patches.safetensors |
All patches in one file |
| ONNX | onnx/ |
Cross-platform inference |
| TensorRT FP16 | trt_fp16/ |
NVIDIA optimized (half precision) |
| TensorRT FP32 | trt_fp32/ |
NVIDIA optimized (full precision) |
from safetensors.torch import load_file
# Load single patch
data = load_file("safetensors/patch_00.safetensors")
patch = data["patch"] # [3, 64, 64]
# Load all patches
all_data = load_file("all_patches.safetensors")
patches = [all_data[f"patch_{i:02d}"] for i in range(25)]
This module is part of the ANIMA security layer for adversarial robustness testing.
Built with ANIMA by Robot Flow Labs.