GithubHelp home page GithubHelp logo

fabiocarrara / neural-ode-features Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 4.0 58 KB

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

Python 98.06% Shell 1.94%
ode-nets pytorch deep-learning feature-extraction image-classification

neural-ode-features's Introduction

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 (ICIAP '19) (pp. 432-442). Springer, Cham.

[2] Carrara, F., Amato, G., Falchi, F. and Gennaro, C., 2020, June. Continuous ODE-defined Image Features for Adaptive Retrieval. In Proceedings of the 2020 International Conference on Multimedia Retrieval (ICMR '20) (pp. 198-206). ACM.

[3] Carrara, F., Caldelli, R., Falchi, F. and Amato, G., 2019, December. On the robustness to adversarial examples of neural ode image classifiers. In 2019 IEEE International Workshop on Information Forensics and Security (WIFS '19) (pp. 1-6). IEEE.

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] and [2], run

./reproduce.sh

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


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

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

to attack a specific model and collect results.

neural-ode-features's People

Contributors

fabiocarrara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

neural-ode-features's Issues

Wondering the best ODE results on CIFAR10 with Odenet of your tests.

Your code works seems really great!
I was confused about the experiments in that paper with MNIST dataset. And the best I can get so far is around 86.5% with ODEnet on CIFAR10. Wondering did you get anything over 90 with ODEnet through your works? I found your code today and it seems you tested way much things than I did.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.