Hello people, I’m fairly new to pytorch and I’m stuck with a problem.
I want to input an image into the generator of a DCGAN instead of a noise vector (the reason for this I have mentioned below). You may take this tutorial notebook of pytorch dcgan as your reference to work.
As you can see that the generator accepts an input of a latent vector of size: (batch_size, 100,1, 1). So how can I input an image to this so that the image gets downsampled to (batch_size, 100,1, 1) size (so this would be the latent vector representation of this image) and so the generator tries to generate that image back.
Any thoughts? Any help will be good.
Thankyou.