Giter Site home page Giter Site logo

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"

This paper is published in Neurocomputing (https://doi.org/10.1016/j.neucom.2023.126524)

Requirements

Python3.8.10

Pytorch1.9.0

advertorch (https://github.com/BorealisAI/advertorch)

autoattack (https://github.com/fra31/auto-attack)

Guide

For CIFAR10

Run CIFAR10_CNNM_AME.py to get the proposed AME model

Run CIFAR10_CNNM_ce.py to get the clean model

For SVHN

Run SVHN_CNN_AME.py to get the proposed AME model

Run SVHN_CNN_ce.py to get the clean model

For Tiny ImageNet

Run TIM_CNN_AME.py to get the proposed AME model

Run TIM_CNN_ce.py to get the clean model

The trained models

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

The random seed is 1.

Contact

Should you have any questions, please feel free to contact [email protected] or [email protected]

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.