Caffe: Why add an 'Permute' layer before flattening the output?

Created on 23 Jul 2016  路  3Comments  路  Source: weiliu89/caffe

I have two questions:

  1. Why need to convert N * C * H * W to N * H * W * C, but not flattening it directly?
  2. The default input image size is 300*300. If I input an image with a different size, do I need to adjust the pad value and the stride value in the convolution and pooling layer respectively?

Most helpful comment

@weiliu89 @yw155 how does permuting make it easier to combine predictions from multiple layers?

All 3 comments

@yw155

1) It is to make it easier to combine predictions from multiple layers.
2) You don't have to.

Thank you very much

@weiliu89 @yw155 how does permuting make it easier to combine predictions from multiple layers?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhenxing9968 picture zhenxing9968  路  7Comments

yeongrok picture yeongrok  路  6Comments

songjmcn picture songjmcn  路  5Comments

ShadowLau picture ShadowLau  路  4Comments

kyuusaku picture kyuusaku  路  6Comments