GitXplorerGitXplorer
d

Interpretable_CNN

public
15 stars
5 forks
1 issues

Commits

List of commits on branch master.
Verified
83c62e0b27a031b0d1f1d849ca7eee898dcc6955

Update README.md

ddavidsonic committed 6 years ago
Unverified
4f074c7e796b7edcbc2775a8f31a6b5ea3b7e571

add BP

ddavidsonic committed 6 years ago
Unverified
15a50ee8fa9a287620c63b04c7be0049e2459b18

fix BP_on_new_attack

ddavidsonic committed 6 years ago
Unverified
48f642ea25f28f75a57cc2ad723b8d37801fe2c8

add lenet_compact

ddavidsonic committed 6 years ago
Unverified
12cd4182514d18cb2ebcee29750cf5b7254e0bb1

MNIST_FF

ddavidsonic committed 6 years ago
Unverified
422f8b3300d2d5d2accea9642003cfc58b6effb7

Add cross attack

ddavidsonic committed 6 years ago

README

The README file for this repository.

Interpretable_CNN

This part contains the code for adversarial attack in the paper Interpretable Convolutional Neural Networks via Feed Forward Design, maintained by Jiali Duan and Min Zhang.

Table of Content

  • [Requirements]

  • [Function]

    • BP/ff models are provided for cifar10 and mnist dataset under folder dataset_structure_model
    • Models can be trained from scratch if no filename is specified
    • By changing adversarial attack methods, different algorithms can be tested
    • Refer to show_sample.ipynb to visualize generated adversarial samples
  • [Usage]

    • python cifar_keras.py -train_dir cifar_BP_model -filename cifar.ckpt -method FGSM
    • python cifar_keras.py -train_dir cifar_ff_model -filename FF_init_model.ckpt -method BIM
cifar_keras.py:
  --batch_size: Size of training batches
    (default: '128')
    (an integer)
  --filename: Checkpoint filename.
    (default: 'FF_init_model.ckpt')
  --learning_rate: Learning rate for training
    (default: '0.001')
    (a number)
  --[no]load_model: Load saved model or train.
    (default: 'true')
  --method: Adversarial attack method
    (default: 'FGSM')
  --nb_epochs: Number of epochs to train model
    (default: '40')
    (an integer)
  --train_dir: Directory where to save model.
    (default: 'cifar_ff_model')