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

How do I code conditional GAN for stacked mnist dataset? #4

Closed
TanmDL opened this issue Sep 15, 2020 · 1 comment
Closed

How do I code conditional GAN for stacked mnist dataset? #4

TanmDL opened this issue Sep 15, 2020 · 1 comment

Comments

@TanmDL
Copy link

TanmDL commented Sep 15, 2020

Thank you for sharing the code. Please share the code of the stacked MNIST dataset for conditional GAN. Actually I have some quarries regarding the conditional gan for stacked mnist dataset?

  1. for the real class conditional which class information will I need to feed into the discriminator? Although, the real data is associated with three classes. I am confused about this portion.
@stevliu
Copy link
Owner

stevliu commented Sep 15, 2020

Hi!

We have included code for the stacked-MNIST experiments, and they are found under configs/stacked_mnist/. The code for producing the stacked-MNIST dataset is here:
https://github.com/stevliu/self-conditioned-gan/blob/master/gan_training/inputs.py#L105

Here, we assign each tuple of three classes (a, b, c) to a number in {0, ..., 999} by doing 100 * a + 10 * b + c. Then, we can feed this in the discriminator the same way as we do for standard class-conditional training.

@stevliu stevliu closed this as completed Sep 15, 2020
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