arashsaber / Deep-Convolutional-AutoEncoder

This is a tutorial on creating a deep convolutional autoencoder with tensorflow.
57 stars 23 forks source link

Fetch values of the latent space #2

Open usarawgi911 opened 5 years ago

usarawgi911 commented 5 years ago

Hi @arashsaber Thank you for the comprehensive explanation of the code. Can you let me know how do i fetch values of the compressed representation (latent space), which is 'fc2 layer' as i understand? I have been trying out code snippets for the same, but couldn't get the values yet. Thank you

arashsaber commented 5 years ago

one quick solution is for the function to also output 'fc2'. A better solution is like the one I used for VAE and AAE available in the 'nnexplore' repository. That is, you define the encoder and decoder functions separately and fetch the output of encoder for any input you desire.