All Projects → grigorisg9gr → rocgan

grigorisg9gr / rocgan

Licence: other
Chainer implementation of the paper Robust Conditional Generative Adversarial Networks

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to rocgan

Bert Chainer
Chainer implementation of "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding"
Stars: ✭ 205 (+1266.67%)
Mutual labels:  chainer
ChainerPruner
ChainerPruner: Channel Pruning framework for Chainer
Stars: ✭ 21 (+40%)
Mutual labels:  chainer
BMI219-2017-ProteinFolding
UCSF BMI219 Deep Learning (2017), Coding example (Prediction of protein folding with RNN and CNN)
Stars: ✭ 14 (-6.67%)
Mutual labels:  chainer
Einops
Deep learning operations reinvented (for pytorch, tensorflow, jax and others)
Stars: ✭ 4,022 (+26713.33%)
Mutual labels:  chainer
Pytorch-Basic-GANs
Simple Pytorch implementations of most used Generative Adversarial Network (GAN) varieties.
Stars: ✭ 101 (+573.33%)
Mutual labels:  cgan
chainer2pytorch
Converts Chainer modules to PyTorch, parameters included.
Stars: ✭ 36 (+140%)
Mutual labels:  chainer
Dynamic routing between capsules
Implementation of Dynamic Routing Between Capsules, Sara Sabour, Nicholas Frosst, Geoffrey E Hinton, NIPS 2017
Stars: ✭ 202 (+1246.67%)
Mutual labels:  chainer
chainer-fcis
[This project has moved to ChainerCV] Chainer Implementation of Fully Convolutional Instance-aware Semantic Segmentation
Stars: ✭ 45 (+200%)
Mutual labels:  chainer
3dgan-chainer
📦 A Chainer implementation of 3D Generative Adversarial Network.
Stars: ✭ 25 (+66.67%)
Mutual labels:  chainer
Pytorch-conditional-GANs
Implementation of Conditional Generative Adversarial Networks in PyTorch
Stars: ✭ 91 (+506.67%)
Mutual labels:  cgan
kawaii creator
Photo to illustration converter
Stars: ✭ 79 (+426.67%)
Mutual labels:  chainer
chainer-grad-cam
Chainer implementation of Grad-CAM
Stars: ✭ 20 (+33.33%)
Mutual labels:  chainer
chainer-pix2pix
Chainer implementation for Image-to-Image Translation Using Conditional Adversarial Networks
Stars: ✭ 40 (+166.67%)
Mutual labels:  chainer
Fcn
Chainer Implementation of Fully Convolutional Networks. (Training code to reproduce the original result is available.)
Stars: ✭ 211 (+1306.67%)
Mutual labels:  chainer
deep-learning-tutorial-with-chainer
Deep learning tutorial with Chainer
Stars: ✭ 25 (+66.67%)
Mutual labels:  chainer
Alpha Zero General
A clean implementation based on AlphaZero for any game in any framework + tutorial + Othello/Gobang/TicTacToe/Connect4 and more
Stars: ✭ 2,617 (+17346.67%)
Mutual labels:  chainer
Visual-Attention-Model
Chainer implementation of Deepmind's Visual Attention Model paper
Stars: ✭ 27 (+80%)
Mutual labels:  chainer
chainer-param-monitor
Monitor parameter and gradient statistics during neural network training with Chainer
Stars: ✭ 13 (-13.33%)
Mutual labels:  chainer
convolutional seq2seq
fairseq: Convolutional Sequence to Sequence Learning (Gehring et al. 2017) by Chainer
Stars: ✭ 63 (+320%)
Mutual labels:  chainer
MXNet-GAN
MXNet Implementation of DCGAN, Conditional GAN, pix2pix
Stars: ✭ 23 (+53.33%)
Mutual labels:  cgan

Robust Conditional GAN

Chainer implementation of the ICLR paper "Robust Conditional Generative Adversarial Networks"

https://openreview.net/forum?id=Byg0DsCqYQ [1]

https://link.springer.com/article/10.1007/s11263-020-01348-5 [4]

Robust Conditional GANs aim at leveraging structure in the target space of the generator by augmenting it with a new, unsupervised pathway to learn the target structure.

Testing/demo mode

We provide a jupyter notebook that illustrates how to call the code for testing.

If you want to use the pretrained models, please follow the instructions in the notebook. The demo testing images are provided in the demo/ folder.

Train the network

To train the network, e.g. with rocgan, you can execute the following command:

python jobs/rocgan/train_mn.py '--config jobs/rocgan/iclr_5layer_rocgan_super.yml'

The yml file describes the modules/dataset to train on. The hyper-parameters are included in the yml, no need to hardcode them in the files.

Dataset preparation

The code is tuned for super-resolution (or any task that requires a pair of input/output images).

In each iteration, a single file is loaded from disk; this file is the vertical concatenation of the input and the output images. Please see the demo/ folder for some samples; the idea is to vertically concatenate the images with the input (e.g. corrupted) image on top and the output image on the bottom. All images are resized to 64x64 for training/testing.

Browsing the folders

The folder structure is the following:

  • gen_models: The folder for the generator models.
  • dis_models: The folder for the discriminator models; do not modify the optional arguments, unless you know what you are doing.
  • updater: The folder that contains the core code for the updater, i.e. the chunk of code that runs in every iteration to update the modules.
  • jobs: It contains a) the yml with the hyper-parameter setting, b) the main command to load the models and run the training (train_mn*.py).
  • source: It contains auxiliary code, you should probably not modify any of that code.
  • evaluations: It contains the code for validation (either during training or offline).

Misc

The results and the pretrained files correspond to the IJCV version [4].

Tested on a Linux machine with:

  • chainer=4.0.0, chainercv=0.9.0,
  • chainer=5.2.0, chainercv=0.12.0.

The code is highly influenced by [2].

Apart from Chainer, the code depends on Pyaml [3].

Citing

If you use this code, please cite [1] or [4]:

BibTeX:

@inproceedings{
chrysos2018rocgan,
title={Robust Conditional Generative Adversarial Networks},
author={Grigorios G. Chrysos and Jean Kossaifi and Stefanos Zafeiriou},
booktitle={International Conference on Learning Representations (ICLR)},
year={2019},
url={https://openreview.net/forum?id=Byg0DsCqYQ},
}

or:

@article{
chrysos2020rocgan,
title={RoCGAN: Robust Conditional GAN},
author={Grigorios G. Chrysos and Jean Kossaifi and Stefanos Zafeiriou},
journal={International Journal of Computer Vision},
pages={1--19},
year={2020},
publisher={Springer}
}

References

[1](1, 2) Grigorios G. Chrysos, Jean Kossaifi and Stefanos Zafeiriou, Robust Conditional Generative Adversarial Networks, International Conference on Learning Representations (ICLR), 2019.
[2]https://github.com/pfnet-research/sngan_projection
[3]https://pypi.org/project/pyaml/
[4](1, 2, 3) Grigorios G. Chrysos, Jean Kossaifi and Stefanos Zafeiriou, RoCGAN: Robust Conditional GAN, International Journal of Computer Vision, 2020.
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].