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

separate encoder output for code vectors #1

Open
vandana-rajan opened this issue Aug 11, 2019 · 3 comments
Open

separate encoder output for code vectors #1

vandana-rajan opened this issue Aug 11, 2019 · 3 comments

Comments

@vandana-rajan
Copy link

vandana-rajan commented Aug 11, 2019

Hi,

I was going through main.py and I have a doubt regarding the 'network architecture section'.

`# network architecture

y, z, neg_marginal_likelihood, D_loss, G_loss = aae.adversarial_autoencoder(x_hat, x, x_id, z_sample, z_id, dim_features, dim_z, n_hidden, keep_prob)

z_train     = aae.encoder(x, n_hidden, dim_z)

z_test      = aae.encoder(x, n_hidden, dim_z)`

Why are you creating separate 'aae.encoder'? The code vectors are already given as output of 'aae.adversarial_autoencoder'.

Vandana Rajan

@eesungkim
Copy link
Owner

Hi,

It is a good point.
There is no need to write two. :)

Thanks!

@vandana-rajan
Copy link
Author

Thanks for your reply.
I am not an expert in tensorflow and I am trying to understand your code.
When you created separate 'aae.encoder' and extracted code vectors, I assume that the already trained encoder part of the network is used because of the 'reuse=True' in the encoder function. Am I right?

@piaotuan
Copy link

你好,可以发一下你有关训练对抗自编码器时绘制损失函数图像的源码码

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

3 participants