I need help in understanding CNN.
model = keras.models.Sequential()
model.add(convolutional.Convolution2D(32, (8,8), activation='relu', strides=(4, 4), padding='same',input_shape=(80,80,4)))
model.add(convolutional.Convolution2D(64, (4, 4), activation='relu', strides=(2, 2), padding='same'))
model.add(convolutional.Convolution2D(64, (3, 3), activation='relu', strides=(1, 1), padding='same'))
I'm not sure about the output of the first CNN. I know that it goes over 32 filters, the kernel size is 8x8 and strides 4x4. I also know about this formula on calculating the width:
W=(W−F+2P)/S+1
W = (80 - 8 + ?? ) / 4 + 1
I'm not sure what to put on P - which means padding . Can you help me understand the size of the output of the first CNN ? Also, can you help me understand why the filters are changed from 32 to 64 after the first step? Is there any good reason for that?