GithubHelp home page GithubHelp logo

sarielma / adaptive-margin-evolution Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 44 KB

The official source code for the paper "Improving Adversarial Robustness of Deep Neural Networks via Adaptive Margin Evolution"

Python 100.00%

adaptive-margin-evolution's Introduction

AME_official

The official source code for the paper "Improving Adversarial Robustness of Deep Neural Networks via Adaptive Margin Evolution" (https://doi.org/10.1016/j.neucom.2023.126524)

Requirements

Python3.8.10

Pytorch1.9.0

advertorch

autoattack

Guide

For CIFAR10

Run CIFAR10_CNNM_AME.py to get the AME model

Run CIFAR10_CNNM_ce.py to get the clean model

For SVHN

Run SVHN_CNN_AME.py to get the AME model

Run SVHN_CNN_ce.py to get the clean model

For Tiny ImageNet

Run TIM_CNN_AME.py to get the AME model

Run TIM_CNN_ce.py to get the clean model

The trained models

The models are available at https://drive.google.com/drive/folders/1B-hjpdQ45_xQtqTVc0nOEV4DA1FylFcy?usp=sharing

The random seed of these models is 1.

Contact

Should you have any questions, please get in touch with [email protected] or [email protected]

adaptive-margin-evolution's People

Contributors

sarielma avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.