8
$\begingroup$

In the paper ImageNet Classification with Deep Convolutional Neural Networks, the size of input image is 224x224. The following figure shows the input size. enter image description here

From caffe, deploy.prototxt file from the directory of the bvlc_alexnet says that the input size is 227x227. enter image description here

Why is the input size different?

$\endgroup$
1
  • 1
    $\begingroup$ I don't have reputation to comment so I am asking a small follow-up. does the 10 represent batch size and 3 represent the RGB channels? $\endgroup$ Jun 11, 2018 at 11:21

2 Answers 2

13
$\begingroup$

I guess it has been a mistake. Take a look at here.

The other author's were Ilya Sutskever and Geoffrey Hinton. So, AlexNet input starts with 227 by 227 by 3 images. And if you read the paper, the paper refers to 224 by 224 by 3 images. But if you look at the numbers, I think that the numbers make sense only of actually 227 by 227.

$\endgroup$
4
$\begingroup$

To elaborate on @Media's answer, what is meant by "I think that the numbers make sense only if they're actually 227 by 227" is the following:

In the attached snapshot, the size of the 1st convolution layer is $55x55$. Now suppose the dimensions of the input images are $224x224$, then by applying the $11x11$ kernels with $stride=4$ as described in the paper, would result in:

$outsize=\frac{(insize+2*padding-kernel)}{stride}+1$

$outsize=\frac{(224+2*0-11)}{4}+1=54.25$

Whereas if the dimensions were $227x227$, then that would result in:

$outsize=\frac{(227+2*0-11)}{4}+1=55$

which conforms with the size of the 1st convolution layer described in the paper.


* I got the formula for calculating the output size from this YouTube tutorial.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.