I have been reading about the basic architecture of neural networks. When going through this explanation of the Pix2Pix GAN, I am struggling to understand this chunk of code:
def downsample(filters, size, ..):
.
.
tf.keras.layers.Conv2D(filters, size, ..)
.
.
downsample(128, 4) (batch_size, 64, 64, 128)
downsample(256, 4) (batch_size, 32, 32, 256)
downsample(512, 4) (batch_size, 16, 16, 512)
.
.
What does it mean for a layer to have a size of 4? Also, how are X and Y in (batch_size, X, Y, Z) being halved each downsample?