Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the label of generated DCGAN pictures #11

Open
qiaoguan opened this issue Mar 11, 2018 · 1 comment
Open

the label of generated DCGAN pictures #11

qiaoguan opened this issue Mar 11, 2018 · 1 comment

Comments

@qiaoguan
Copy link

hi~, In your paper, for the generated DCGAN pictures, the probability for each class is the same ,i.e. 1/k(k is the numer of the class), while in the training stage , we have to assign a label for any training sample, so i do not know how to assign label for the generated DCGAN pictures, however, i looked at your source code in prepare_gan_data.m, it seems that the label for the generated DCGAN samples is 0, i'm a little confused, can you explaining why? thanks! (chinese is also OK if it is easier to explain)

@layumi
Copy link
Owner

layumi commented Mar 17, 2018

Hi @qiaoguan,
Sorry for the late response.
Yes, the input label for the generated images is 0 (when preparing dataset).
In fact, I write the "1/k" in the loss function.
If the input label is 0, the code know the input is generated sample and then assign a different loss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants