← Open Source

Paper by Miyato et al. https://openreview.net/forum. id=B1QRgziT-.

Model DevelopmentArchitecturePython
Momentum
+0stars in 24 hours0.0%
677
Stars
109
Forks
+0
This week
1
Contributors
Created 2017-12-01 · Updated 2026-11-19 · #19282 today
Top developers
christiancosgrove
README

SN-GAN (spectral normalization GAN) in PyTorch

Based on the paper "Spectral Normalization for Generative Adversarial Networks" by Takeru Miyato, Toshiki Kataoka, Masanori Koyama, Yuichi Yoshida

ICLR 2018 preprint: https://openreview.net/forum?id=B1QRgziT-

CIFAR-10 Samples

Implementation Details

This code implements both DCGAN-like and ResNet GAN architectures. In addition, training with standard, Wasserstein, and hinge losses is possible.

To get ResNet working, initialization (Xavier/Glorot) turned out to be very important.

Training

Train ResNet generator and discriminator with hinge loss: python main.py --model resnet --loss hinge

Train ResNet generator and discriminator with wasserstein loss: python main.py --model resnet --loss wasserstein

Train DCGAN generator and discriminator with cross-entropy loss: python main.py --model dcgan --loss bce

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store