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 c2(rotation) c3(width) didn't contain in the continuous latent code distribution #25

Open
TaoStarlit opened this issue Feb 14, 2018 · 1 comment

Comments

@TaoStarlit
Copy link

Hi Xi Chen,
I am reading and debugging you code, find that, the latent code distribution, define in the run_mnist_exp.py:
latent_spec = [
(Uniform(62), False),
(Categorical(10), True),
(Uniform(1, fix_std=True), True),
(Uniform(1, fix_std=True), True),
]
But, when separating the distributions to continuous and discrete type in regularized_gan.py :
self.reg_cont_latent_dist = Product([x for x in self.reg_latent_dist.dists if isinstance(x, Gaussian)])
self.reg_disc_latent_dist = Product([x for x in self.reg_latent_dist.dists if isinstance(x, (Categorical, Bernoulli))])

It turn out only c1(Categorical) is included in the discrete latent code for the regularization during train.
The c2-rotation(Uniform) c3-width(Uniform) are not included in the continuous latent code, because they are Uniform instead of Gaussian. So they may not be train.

Please tell me how to train and get the Q(c2,c3|x) --> P(c2,c3|x) in your code.

Yours,
TaoStatlit

@fjxmlzn
Copy link

fjxmlzn commented Jun 26, 2018

Uniform is extended from Gaussian. Please look at https://github.com/openai/InfoGAN/blob/master/infogan/misc/distributions.py#L250

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