All Projects → riejohnson → cfg-gan

riejohnson / cfg-gan

Licence: GPL-3.0 license
CFG-GAN: Composite functional gradient learning of generative adversarial models

Programming Languages

C++
36643 projects - #6 most used programming language
Cuda
1817 projects
shell
77523 projects

Projects that are alternatives of or similar to cfg-gan

OASIS
Official implementation of the paper "You Only Need Adversarial Supervision for Semantic Image Synthesis" (ICLR 2021)
Stars: ✭ 232 (+1446.67%)
Mutual labels:  image-generation, generative-adversarial-networks
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 (+246.67%)
Mutual labels:  image-generation, generative-adversarial-networks
MNIST-invert-color
Invert the color of MNIST images with PyTorch
Stars: ✭ 13 (-13.33%)
Mutual labels:  image-generation, generative-adversarial-networks
Tensorflow Generative Model Collections
Collection of generative models in Tensorflow
Stars: ✭ 3,785 (+25133.33%)
Mutual labels:  generative-adversarial-networks, generative-models
Gansformer
Generative Adversarial Transformers
Stars: ✭ 421 (+2706.67%)
Mutual labels:  image-generation, generative-adversarial-networks
fewshot-font-generation
The unified repository for few-shot font generation methods. This repository includes FUNIT (ICCV'19), DM-Font (ECCV'20), LF-Font (AAAI'21) and MX-Font (ICCV'21).
Stars: ✭ 76 (+406.67%)
Mutual labels:  generative-models
WGAN-GP-TensorFlow
TensorFlow implementations of Wasserstein GAN with Gradient Penalty (WGAN-GP), Least Squares GAN (LSGAN), GANs with the hinge loss.
Stars: ✭ 42 (+180%)
Mutual labels:  image-generation
GDPP
Generator loss to reduce mode-collapse and to improve the generated samples quality.
Stars: ✭ 32 (+113.33%)
Mutual labels:  generative-adversarial-networks
image generator 2
Progressive GANによる画像生成器
Stars: ✭ 31 (+106.67%)
Mutual labels:  image-generation
Autoregressive-models
Tensorflow 2.0 implementation of Deep Autoregressive Models
Stars: ✭ 18 (+20%)
Mutual labels:  generative-models
gan-vae-pretrained-pytorch
Pretrained GANs + VAEs + classifiers for MNIST/CIFAR in pytorch.
Stars: ✭ 134 (+793.33%)
Mutual labels:  generative-adversarial-networks
SuperStyleNet
SuperStyleNet: Deep Image Synthesis with Superpixel Based Style Encoder (BMVC 2021)
Stars: ✭ 28 (+86.67%)
Mutual labels:  image-generation
overlord
Official pytorch implementation of "Scaling-up Disentanglement for Image Translation", ICCV 2021.
Stars: ✭ 35 (+133.33%)
Mutual labels:  generative-models
Continuous-Image-Autoencoder
Deep learning image autoencoder that not depends on image resolution
Stars: ✭ 20 (+33.33%)
Mutual labels:  image-generation
gcWGAN
Guided Conditional Wasserstein GAN for De Novo Protein Design
Stars: ✭ 38 (+153.33%)
Mutual labels:  generative-adversarial-networks
Generative-Model
Repository for implementation of generative models with Tensorflow 1.x
Stars: ✭ 66 (+340%)
Mutual labels:  generative-models
lffont
Official PyTorch implementation of LF-Font (Few-shot Font Generation with Localized Style Representations and Factorization) AAAI 2021
Stars: ✭ 110 (+633.33%)
Mutual labels:  generative-models
GAN-keras
tensorflow2.x implementations of Generative Adversarial Networks.
Stars: ✭ 30 (+100%)
Mutual labels:  generative-adversarial-networks
simsg
Semantic Image Manipulation using Scene Graphs (CVPR 2020)
Stars: ✭ 49 (+226.67%)
Mutual labels:  generative-models
NeuralTexGen
Image-space texture optimization of 3D meshes using PyTorch
Stars: ✭ 60 (+300%)
Mutual labels:  image-generation

CFG for GAN in C++

This is a C++ implementation of composite functional gradient learning of generative adversarial models, described in our ICML paper:

System requirements
To run this code, your system must have the following:

  • a CUDA-capable GPU with 12GB or larger device memory (e.g., Tesla P100). (5GB device memory will do for small 32x32 images, though.)
  • CUDA 8.0 or higher.
  • Testing was done with gnu g++ and CUDA 8.0 on Linux.
    I don't know how to run it on Windows though it should be possible.

What you can do

  • Training of image generation models using the xICFG algorithm of the paper above.
  • Generation of images using a model trained with xICFG.
  • Evaluation of image quality, using classifiers (pre-trained and used in the paper).

How

  1. Go to bin/ and customize makefile there if needed; see the beginning of makefile for instructions.
    Build executables by entering make at bin/.
  2. To test the executable, go to test/ and enter ./test.sh. Dreal-Dgen should gradually go down if the executable was built correctly.
  3. Try out *.sh at `test/'.

Here is slightly more technical details.

FAQ
Q. Do you have a tensorflow or pyTorch version of this code?
A. Yes. There is a pyTorch version.

Q. Is there a python wrapper for this code?
A. No. Instead, you have shell scripts (test/*.sh). The network architecture and training/generation parameters can be changed by changing the shell scripts.

Q. Why C++?
A. For historical reasons. But don't worry, you don't have to read it if you just want to use this code. Also, there is a pyTorch version.

Q. I just want to see your xICFG implementation as a reference for developing my own code for doing xICFG. Which source file should I look at?
A. Please see "Source code" in doc/info.md or see cfggan.py of the pyTorch version.

Data Source: The data files included here or downloaded by the scripts here were derived from MNIST and SVHN.
Note that the LSUN datasets used in the paper are not provided due to their sizes.

License: This program is free software issued under the GNU General Public License V3.

Note: This repository provides a snapshot of research code, which is constantly changing elsewhere for research purposes. For this reason, it is very likely that pull requests (including typo corrections) will be declined.

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].