Crazylov3 / ControlGAN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ControlGAN

☑ Improving CGAN's ability to create images with correct labels. Focus on details attribute which hard to be done with CGAN.

☑ Making GAN models capable of extrapolation, zero-shot learning.

Dataset was used : CelebA

❎ Highly recommend use VGA Nvidia P100 Tesla (or stronger GPU) to train this model. If you dont have GPU, You can try it on gg colab

Network Architecture:

I used WPAN-GP loss to stabilize training phase

Due to the limiting of computation power, I only trained it for 60k iteration. So the result shown below is not the final result. If you want to generate more realistic images, you can use the bigger model depending on what hardware you have. You also can use ProGan backbone to have fun with this classifier.

Male:

Female:

🔻 Now, let's test the efficiency of using the classification model, and also extrapolation, zero-shot learning

We used binary(0, 1) vector for representing the label. In this task we just multiply the label vector by x1, x2, x3. As you can see, the model works quite well one strange label (zero-shot learning). ControlGAN has shown its outstanding strength compared to CGAN. Now we can change the label of the generated image more easily!

❌If you want to have pretrained-weight model, drop me an email (giangletruong2444@gmail.com)

❗ This project is inspired by this paper

About


Languages

Language:Python 100.0%