All Projects → AliaksandrSiarohin → wc-gan

AliaksandrSiarohin / wc-gan

Licence: other
Whitening and Coloring transform for GANs

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to wc-gan

pytorch gan
Spectral Normalization and Projection Discriminator
Stars: ✭ 16 (-51.52%)
Mutual labels:  gan
GAN-auto-write
Generative Adversarial Network that learns to generate handwritten digits. (Learning Purposes)
Stars: ✭ 18 (-45.45%)
Mutual labels:  gan
Course-Project---Speech-Driven-Facial-Animation
ECE 535 - Course Project, Deep Learning Framework
Stars: ✭ 63 (+90.91%)
Mutual labels:  gan
StyleGANCpp
Unofficial implementation of StyleGAN's generator
Stars: ✭ 25 (-24.24%)
Mutual labels:  gan
Simple-GAN-Base-on-Matlab
simple Generative Adversarial Networks base on matlab
Stars: ✭ 24 (-27.27%)
Mutual labels:  gan
CS231n
My solutions for Assignments of CS231n: Convolutional Neural Networks for Visual Recognition
Stars: ✭ 30 (-9.09%)
Mutual labels:  gan
srgan
Pytorch implementation of "Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network"
Stars: ✭ 39 (+18.18%)
Mutual labels:  gan
Pytorch-Image-Translation-GANs
Pytorch implementations of most popular image-translation GANs, including Pixel2Pixel, CycleGAN and StarGAN.
Stars: ✭ 106 (+221.21%)
Mutual labels:  gan
mSRGAN-A-GAN-for-single-image-super-resolution-on-high-content-screening-microscopy-images.
Generative Adversarial Network for single image super-resolution in high content screening microscopy images
Stars: ✭ 52 (+57.58%)
Mutual labels:  gan
MoveSim
Codes for paper in KDD 2020 (AI for COVID-19): Learning to Simulate Human Mobility
Stars: ✭ 16 (-51.52%)
Mutual labels:  gan
metrics
IS, FID score Pytorch and TF implementation, TF implementation is a wrapper of the official ones.
Stars: ✭ 91 (+175.76%)
Mutual labels:  gan
AdvSegLoss
Official Pytorch implementation of Adversarial Segmentation Loss for Sketch Colorization [ICIP 2021]
Stars: ✭ 24 (-27.27%)
Mutual labels:  gan
steam-stylegan2
Train a StyleGAN2 model on Colaboratory to generate Steam banners.
Stars: ✭ 30 (-9.09%)
Mutual labels:  gan
TET-GAN
[AAAI 2019] TET-GAN: Text Effects Transfer via Stylization and Destylization
Stars: ✭ 74 (+124.24%)
Mutual labels:  gan
pytorch clip guided loss
A simple library that implements CLIP guided loss in PyTorch.
Stars: ✭ 67 (+103.03%)
Mutual labels:  gan
GAN-Project-2018
GAN in Tensorflow to be run via Linux command line
Stars: ✭ 21 (-36.36%)
Mutual labels:  gan
automatic-manga-colorization
Use keras.js and cyclegan-keras to colorize manga automatically. All computation in browser. Demo is online:
Stars: ✭ 20 (-39.39%)
Mutual labels:  gan
chainer-wasserstein-gan
Chainer implementation of the Wesserstein GAN
Stars: ✭ 20 (-39.39%)
Mutual labels:  gan
AvatarGAN
Generate Cartoon Images using Generative Adversarial Network
Stars: ✭ 24 (-27.27%)
Mutual labels:  gan
Deep-Exemplar-based-Video-Colorization
The source code of CVPR 2019 paper "Deep Exemplar-based Video Colorization".
Stars: ✭ 180 (+445.45%)
Mutual labels:  gan

Whitening and Coloring transform for GANs

Check out our paper

Unsupervised Cifar-10 (IS 8.66) Supervised Cifar-10 (IS 9.06)

Requirments

  • python2
  • numpy
  • scipy
  • skimage
  • pandas
  • tensorflow == 1.5.0 (I have not testted with other versions)
  • keras == 2.0.8 (I have tried latter versions, but they throw a bug. Not sure from where it came from)
  • tqdm

For the commands reproducing experiments from the paper check scripts folder.

All scripts has the following name: (name of the dataset) + (architecture type (resnet or dcgan)) + (discriminator normalization (sn or wgan_gp)) + (conditional of unconditional) + (if conditional use soft assigment (sa)).

For example:

CUDA_VISIBLE_DEVICES=0 scripts/cifar10_resnet_sn_uncond.sh

will train GAN for cifar10 dataset, with resnet architecture, spectral normalized discriminator in unconditional case.

All dataset except for imagenet downloaded and trained at the same time.

Imagenet

  1. This will consume a loot of memory. Because dataset is packed into numpy files for sequential reads.
  2. Download imagenet ILSVRC2012. Train and val. Put train to ../ILSVRC2012/train, and val to ../ILSVRC2012/val/val (val/val is important)
  3. Preprocess imagenet train:

bash preprocess.sh ../ILSVRC2012/train ../imagenet-resized

  1. Preprocess imagenet val:

bash preprocess.sh ../ILSVRC2012/val ../imagenet-resized-val

  1. Now you can remove ILSVRC2012
  2. CUDA_VISIBLE_DEVICES=0 scripts/imagenet_resnet_sn_cond_sa.sh This will first pack imagenet into numpy files, and then start traning.

Citation:

@inproceedings{
	siarohin2018whitening,
	title={Whitening and Coloring transform for {GAN}s},
	author={Aliaksandr Siarohin and Enver Sangineto and Nicu Sebe},
	booktitle={ICLR},
	year={2019},
	url={https://openreview.net/forum?id=S1x2Fj0qKQ}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].