Skip to content

This repository contains the majority of the code for "Generating Adversarial Surfaces via Band-Limited Perturbations."

License

Notifications You must be signed in to change notification settings

giorgio-mariani/Adversarial-Surfaces-via-Band-Limited-Perturbations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adversarial-Surfaces-via-Band-Limited-Perturbations

This repository contains the majority of the code for Generating Adversarial Surfaces via Band-Limited Perturbations .

Dependencies

PyTorch 1.4

This project uses PyTorch in order to compute gradients and use accelerated hardware, hence a version of pytorch equal to 1.4 should be used.

Other packages

All other packages can be installed by running

pip install -r requirements.txt

CUDA KNN (optional)

In order to compute the nearest neighbors and chamfer distance, a CUDA implementation of KNN is used. It can be installed using

git clone https://github.com/unlimblue/KNN_CUDA.git
cd KNN_CUDA
make && make install

This dependency is necessary with some types of adversarial losses, otherwise it can be skipped.

Dataset Data

The data for the dataset can be downloaded at the following pages:

Once downloaded put the data inside a subfolder named raw inside a root folder choosen by you; e.g. if /home/faust is the root directory for the dataset, then the downloaded data should be put in /home/faust/raw).

Pre-trained Parameters

The pre-trained parametes for the classifiers can be found here. Pass this data in input when instantiating a classifier. For a more in detail explanation, look at this two tutorials:


NOTE:

Unfortunately due to compatibility reasons, most of the code done on CoMA is not currently available. I will try to integrate it in the repository as soon as I have more time.


About

This repository contains the majority of the code for "Generating Adversarial Surfaces via Band-Limited Perturbations."

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published