I wanted to create an encoder, which is the first part of an autoencoder. I do not want to build the whole autoencoder but rather wanted to test whether my mobile device can support running an encoder and encoding some images on a trained TensorFlow model.
But I am having some problems. I found some code online to describe an autoencoder here. My aim is to use the encoder separately to "compress" images. Here is my code. So know I want to convert the
encoded variable to a vector format. Can anyone provide a suitably easy solution to accomplish that?
By compressing Images, I mean I just want their vector representation generated by the encoder which can later be decoded. So basically I want it to print its latent space/the
encodedvariable. The catch is that it should be in a vector representation. The reason is that right know it's shape is (None, 32) which cannot be used for further processing by TensorFlow. So, any ideas?