PBCAT: Patch-Based Composite Adversarial Training against Physically Realizable Attacks on Object Detection
This work is based on our prior work:
(1) "On the Importance of Backbone to the Adversarial Robustness of Object Detectors"(IEEE TIFS) to defend against pixel-based adversarial attacks.
🔗 Project page: https://github.com/thu-ml/oddefense
(2) A Single Set of Adversarial Clothes Breaks Multiple Defense Methods in the Physical World to evaluate different defense methods using adaptive attacks.
🔗 Project page: adv-clothes-break-multiple-defenses
conda create -n patch python=3.10
conda activate patch
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
pip install -U openmim
mim install mmcv-full~=1.7.0
pip install mmdet~=2.28.0
pip install -r requirements.txt
pip install mmcv==1.7.0
pip install scikit-image
pip install yapf==0.40.1-
Modify Config Files
Modify the variables checkpoint_at, data_root, and work_dir to your own path in the following files:frcnn/faster_rcnn_r50_fpn_1x_coco_freeat_base.pyfcos/fcos_r50_caffe_fpn_gn-head_1x_coco_freeat_base.pydn-detr/dn-detr.py
-
Training
Run the following command to start training:bash tools/dist_train.sh [config_file] [num_gpus]
-
Evaluation
For adversarial evaluation, please refer to our prior work:
A Single Set of Adversarial Clothes Breaks Multiple Defense Methods in the Physical World
🔗 adv-clothes-break-multiple-defenses
| Model | Config File | Checkpoint |
|---|---|---|
| Faster-RCNN | faster_rcnn_r50_fpn_1x_coco_freeat_train.py |
click to download |
| FCOS | fcos_r50_caffe_fpn_gn-head_1x_coco_freeat_train.py |
click to download |
| DN-DETR | dn-detr.py |
click to download |
If you find that our work is helpful to you, please star this project and consider cite:
@inproceedings{li2025pbcat,
title={PBCAT: Patch-based composite adversarial training against physically realizable attacks on object detection},
author={Li, Xiao and Zhu, Yiming and Huang, Yifan and Zhang, Wei and He, Yingzhe and Shi, Jie and Hu, Xiaolin},
booktitle={IEEE InternationalConference on Computer Vision},
year={2025}
}
@article{li2025importance,
title={On the importance of backbone to the adversarial robustness of object detectors},
author={Li, Xiao and Chen, Hang and Hu, Xiaolin},
journal={IEEE Transactions on Information Forensics and Security},
year={2025},
publisher={IEEE}
}