Skip to content

Pytorch code to train image classifiers based on ODE Nets on MNIST and CIFAR-10, extract features and test robustness to adversarial examples

Notifications You must be signed in to change notification settings

aimh-lab/neural-ode-features

 
 

Repository files navigation

Neural ODE Image Classifiers

Pytorch code for training and evaluating Neural ODEs image classifiers on MNIST and CIFAR-10 datasets. It reproduces experiments presented in the following papers:

[1] Carrara, F., Amato, G., Falchi, F. and Gennaro, C., 2019, September. Evaluation of Continuous Image Features Learned by ODE Nets. In International Conference on Image Analysis and Processing (pp. 432-442). Springer, Cham.

[2] Carrara, F., Caldelli, R., Falchi, F. and Amato, G., 2019, December. On the Robustness to Adversarial Examples of Neural ODE Image Classifiers. Accepted at the 2019 IEEE International Workshop on Information Forensics and Security.

Getting Started

Clone and install requirements:

git clone --recursive https://github.com/fabiocarrara/neural-ode-features.git
cd neural-ode-features
pip install -e torchdiffeq
pip install torchvision foolbox h5py pandas tqdm seaborn sklearn

Reproduce Experiments

To obtain the trained models and reproduce the experiments described in [1], run

./reproduce.sh

Pre-trained models are also available: neural-ode-features-runs.zip (172MB)


To reproduce experiments described in [2], obtain the trained models, and then run

cd adversarial
./reproduce.sh <path/to/specific_run_folder>

to attack a specific model and collect results.

About

Pytorch code to train image classifiers based on ODE Nets on MNIST and CIFAR-10, extract features and test robustness to adversarial examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.1%
  • Shell 1.9%