PyTorch-CycleGAN icon indicating copy to clipboard operation
PyTorch-CycleGAN copied to clipboard

How did you implement PatchGAN??

Open kenoharada opened this issue 7 years ago • 3 comments

Thank you so much for implementing CycleGAN in pytorch more readable!

I would like to know which part is PatchGAN??

kenoharada avatar Dec 30 '17 04:12 kenoharada

PatchGAN corresponds to the discriminator part :
https://github.com/aitorzip/PyTorch-CycleGAN/blob/67da8f9e2b69bd68763451803c7700aaccc92f18/models.py#L64

olivier-gillet avatar Jun 28 '19 20:06 olivier-gillet

I don"t think we use PatchGAN, can we think avg_pool2d means PatchGAN?

Einstellung avatar Oct 08 '19 09:10 Einstellung

Hi all, I was stuck here too but I've figured it out. After the last conv layer of the PatchGAN (before average pool) the receptive field size is 70. So each neuron on the single channel feature map (which is 30x30) coming out of that conv layer has information from a 70x70 patch of the input. The corresponding patches overlap one another on the input.

alexander-soare avatar May 21 '20 16:05 alexander-soare