Regarding Caffe Cifar example conv1 layer output dimension

28 views
Skip to first unread message

王驰航

unread,
Jul 14, 2015, 8:53:11 AM7/14/15
to caffe...@googlegroups.com
as specified in cifar10_quick_train_test.prototxt, the pool1 layer is defined as follow:

layer {
  name: "pool1"
  type: "Pooling"
  bottom: "conv1"
  top: "pool1"
  pooling_param {
    pool: MAX
    kernel_size: 3
    stride: 2
  }
}

according to the formula given here:
h_o = (h_i + 2 * pad_h - kernel_h) / stride_h + 1

The output h_o should be 15! But the actual output dimension is 16!


Any explanation please?

Evan Shelhamer

unread,
Jul 17, 2015, 12:16:44 AM7/17/15
to 王驰航, caffe...@googlegroups.com
This is likely due to the difference in convolution and pooling regions as explained here: https://github.com/BVLC/caffe/issues/1318. I have not checked that this is the case for the CIFAR-10 net definition, but suspect it's an instance of this.

Evan Shelhamer

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/0056bb9a-169a-4977-9056-8a864d613804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages