Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why your model input is 225 #5

Open
lmmcc opened this issue Mar 14, 2018 · 3 comments
Open

why your model input is 225 #5

lmmcc opened this issue Mar 14, 2018 · 3 comments

Comments

@lmmcc
Copy link

lmmcc commented Mar 14, 2018

hello, i want to know why your input is 225,while the original one is 224,

@shicai
Copy link
Owner

shicai commented Mar 14, 2018

simply because i don't like the floor/ceil mode of conv7x7/s2 and pool3x3/s2 in caffe.

for input size = 225:
output size of conv7x7/s2 = (225 - 7 + 2*3) / 2 + 1 = 113,
output size of pool3x3/s2 = (113 - 3) / 2 + 1 = 56.

while for input size = 224:
that is floor((224 - 7 + 2*3) / 2) + 1 = 112, and 
ceil((112 - 3) / 2) + 1 = 56.

@lmmcc
Copy link
Author

lmmcc commented Mar 15, 2018

thanks for your reply,,,sorry for another question,you provide a test prototxt,in your proto,,the bn layer's batch_norm_param is set to eps:1e-4,and have another three params,will it be changed to "use_global_stats:true" in test phase?

@shicai
Copy link
Owner

shicai commented Mar 15, 2018

yes. it is automatically configured by caffe: in train phase, use_global_stats is false, and in test phase, it is true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants