hello @ptrblck. Firstly, thanks for replying.



 ptrblck:

You could try to reshape the image into this shape, but might need to change the size of dim1 depending on the input image shape.


I think this won’t work as I want the generator to re-create that image.



 ptrblck:

so I assume you want to train another model to create the latent representation for each image and feed these representations to the DCGAN in another step?


umm…yes, but if possible I want to incorporate that feature in the same model by modifications/additions. So my main question was, how should I do that? Should I use convolution layers to achieve that or is there an another method that people use?
To give you more calrity, my application requires me to input the image inside the generator, like people do in these 1 applications.