Adapting ZFNet on 2244x224 image using a filter 7X7
I am building a model based on ZFNet in Tensorflow 2.0. I am using the Petal images dataset. The images are of size 224x244x3. So my question is when implementing the first layer (conv2d) with filter size = 7 and a stride of 3 and padding of 0. I am getting the output dimension of 109.5 using formula (n+2p-f/S + 1). So if I use the above-mentioned values what will be the dimension returned by TensorFlow in the first layer. and secondly, how can I adjust the parameter values so it returns a whole number.
reference formula : (n+2p-f)/2 +1
reference calculations: 224+0-7/2 +1 = 109.5
Thanks.
Topic alex-net cnn tensorflow convolution
Category Data Science