Home

Awesome

img2ImgGAN

Implementation of the paper : Toward Multimodal Image-to-Image Translation

Results

<div class="fig figcenter fighighlight"> <img src="imgs/g_0.png" width="23%" style="margin-right:3px;"> <img src="imgs/t_0.png" width="23%" style="margin-right:2px;"> <img src="imgs/cLR_0.png" width="23%" style="margin-right:3px;"> <img src="imgs/cVAE_0.png" width="23%"> </div> <div class="fig figcenter fighighlight"> <img src="imgs/g_1.png" width="23%" style="margin-right:3px;"> <img src="imgs/t_1.png" width="23%" style="margin-right:2px;"> <img src="imgs/cLR_1.png" width="23%" style="margin-right:3px;"> <img src="imgs/cVAE_1.png" width="23%"> </div> <div class="fig figcenter fighighlight"> <img src="imgs/g_2.png" width="23%" style="margin-right:3px;"> <img src="imgs/t_2.png" width="23%" style="margin-right:2px;"> <img src="imgs/cLR_2.png" width="23%" style="margin-right:3px;"> <img src="imgs/cVAE_2.png" width="23%"> </div> <div class="fig figcenter fighighlight"> <img src="imgs/g_3.png" width="23%" style="margin-right:3px;"> <img src="imgs/t_3.png" width="23%" style="margin-right:2px;"> <img src="imgs/cLR_3.png" width="23%" style="margin-right:3px;"> <img src="imgs/cVAE_3.png" width="23%"> </div> <div class="fig figcenter fighighlight"> <img src="imgs/g_4.png" width="23%" style="margin-right:3px;"> <img src="imgs/t_4.png" width="23%" style="margin-right:2px;"> <img src="imgs/cLR_4.png" width="23%" style="margin-right:3px;"> <img src="imgs/cVAE_4.png" width="23%"> </div> <div class="fig figcenter fighighlight"> <img src="imgs/g_5.png" width="23%" style="margin-right:3px;"> <img src="imgs/t_5.png" width="23%" style="margin-right:2px;"> <img src="imgs/cLR_5.png" width="23%" style="margin-right:3px;"> <img src="imgs/cVAE_5.png" width="23%"> <div class="figcaption"> <b>Result</b> First column represents input, second column the ground truth. The next is the image generated from <b>cLR-GAN</b> and the last column represents the image generated from <b>cVAE-GAN</b>. Results were obtained from validation dataset. </div> </div>

Contents:

<a name='tensorboard'></a>

Model Architecture Visualization

Fig 1: Structure of BicycleGAN. (Image taken from the paper)

<a name='cvae'></a>

cVAE-GAN Network

<a name='depends'></a>

Dependencies

To install the above dependencies, run:

$ sudo pip install -r requirements.txt

<a name='struct'></a>

Structure

 -img2imgGAN/
            -nnet
            -utils
            -data/
                  -edges2handbags
                  -edges2shoes
                  -facades
                  -maps

<a name='setup'></a>

Setup

<a name='usage'></a>

Usage

<a name='graph'></a>

<a name='train'></a>

<a name='test'></a>

<a name='viz'></a>

Visualizations

Loss of discriminator and generator as function of iterations on edges2shoes dataset.

<a name='todo'></a>

TODO

<a name='licence'></a>

License

Released under the MIT license