Skip to content

randomizedheap/CR_Attack

Repository files navigation

A Certified Radius-Guided Attack Framework to Image Segmentation Models

Demo code for paper submission "A Certified Radius-Guided Attack Framework to Image Segmentation Models". More code will be released soon.

Preparations

Download official torch model for Pascal VOC PSPNet here.

Place it under ./modeldata and rename it to voc_psp_official.pth.

Download Pascal VOC Dataset with SBD augmentation with our automatic script.

cd VOC2012
chmod +x download.sh
./download.sh

Whitebox Attack Examples

White-box CR-PGD Attack(with L2 norm=1, hyperameters all under default setting):

python3 whitebox_attack.py --config=configvoc_psp.json --norm=2 --eps=1

White-box CR-PGD Attack(with L-infty norm=0.004, hyperameters all under default setting):

python3 whitebox_attack.py --config=configvoc_psp.json --norm=inf --eps=0.004

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published