icyham / local_gradients_smoothing

PyTorch implementation of Local Gradients Smoothing: Defense against localized adversarial attacks Paper
10 stars 3 forks source link

ImageNet dataset directory structure #1

Open william860705 opened 3 years ago

william860705 commented 3 years ago

Hi,

I would like to reproduce your work. However I think there's no existing patches in imagenet val sets

for example the following path: _patchesdir/"owlpatch"/"owlpatch_ep59.png"

Is it possible to give more detail about how you structure the data? Thank you.

icyham commented 3 years ago

Hello,

Patches were created with patch.ipynb notebook from https://github.com/metallurk/adv-patch. Or you can take the example from Adversarial patch paper - https://arxiv.org/pdf/1712.09665.pdf