carpedm20 / DCGAN-tensorflow

A tensorflow implementation of "Deep Convolutional Generative Adversarial Networks"
http://carpedm20.github.io/faces/
MIT License
7.15k stars 2.63k forks source link

What's mean of "y_dim" #75

Closed FormatFish closed 7 years ago

FormatFish commented 7 years ago

Hi , I just read the paper and your code , and I find "y_dim" in your model.py function of generator , Is that the label for vector z? and just like "LAPGAN" , the y_dim is just like conditioning variable which aim is to control the generator model?

mikigom commented 7 years ago

You can see that both generator and discriminator model include y term if dataset is mnist. I think y_dim means number of dimension of label of each data (I mean, if dataset is mnist, it means 10. e.g. 0, 1, 2, ... 9.) and this model architecture is closer to cGAN rather than LAPGAN.

carpedm20 commented 7 years ago

Yes it's a conditional variable which is described in appendix of the paper which makes DCGAN as a conditional generative model.

ttdbb1 commented 5 years ago

so