The autencoder is composed of an encoder and decoder. The decoder takes the dimensions from the encoder and tries to generate and image.
The encoder was first trained by adding a decoder. The decoder in this case is used to validate the enocder. Essentially, the encoder returns a 256 dimension feature space, the decoder takes those number and tries recontrsuct an image.
The image below shows how the image is passed through the encoder.
Encoder
The decoder in it's architecture is the exact mirror image of the encoder as shown above. The decoder, as explained above, is fundamentally used for "image recotruction part of the Project.
#Image Reconstruction
Below you can see the original input image and the recontructed image.