jessemzhang / dl_spectral_normalization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spectral Normalization for Deep Convolutional Networks

The code in this repository accompanies the experiments performed in the paper Generalizable Adversarial Training via Spectral Normalization by Farnia*, Zhang*, and Tse (*equal contributors), which will be presented as a poster at ICLR 2019.

The repository contains the following:

Installation

The dl_spectral_normalization package can be installed via pip:

pip install dl_spectral_normalization

An example approach for accessing package contents is as follows:

# Imports utilities for building and training networks
from dl_spectral_normalization import dl_utils

# Import one of the provided neural network architectures: AlexNet
from dl_spectral_normalization.models import alexnet

# Import adversarial training methods
from dl_spectral_normalization import adversarial as ad

For a more detailed tutorial, please refer to train_network_template.ipynb. For references on visualizing results, we provide several examples in notebooks_figures. We were able to run all of our experiments in an nvidia-docker image (tensorflow/tensorflow:latest-gpu running TensorFlow version 1.10.1).

About


Languages

Language:Jupyter Notebook 80.3%Language:Python 19.7%