I need to calculate the receptive field of a model like this one:
Conv2D(filters=4, kernel_size=5, strides=2, padding="same"),
ReLU(),
MaxPoling2D(pool_size=2),
Conv2D(filters=8, kernel_size=3, padding="same"),
ReLU(),
GlobalAveragePooling2D(),
Dropout(0.5),
Dense(10)
from what I understand I need to use a formula like:
RF+=(kernel_size-1)*stride
and in this case calculate this way:
Conv2D: RF = 1+(5-1)*2 = 9
MaxPooling2D: RF = 9+(2-1)*2 = 11
Conv2D: RF = 11+(3-1)*1 = 13
where am I wrong?