Understanding Deconvolution Layer and Crop Layer.

864 views
Skip to first unread message

William Tan

unread,
Mar 31, 2016, 3:14:45 AM3/31/16
to Caffe Users
Hi all,

I have a few questions about Deconvolution Layer and Crop Layer.

1. How do I calculate the output size w.r.t. input size, filter size, padding, and strides?
2. What is the purpose of Crop Layer?

Regards,
William

William Tan

unread,
Mar 31, 2016, 5:06:50 AM3/31/16
to Caffe Users
Sorry, the first question is referring to the Deconvolution Layer.

Evan Shelhamer

unread,
Apr 14, 2016, 4:37:24 AM4/14/16
to William Tan, Caffe Users
1. How do I calculate the output size w.r.t. input size, filter size, padding, and strides?

​The exact logic is handled by `compute_output_shape()`: https://github.com/BVLC/caffe/blob/master/src/caffe/layers/deconv_layer.cpp#L7-L22

2. What is the purpose of Crop Layer?

It adjusts the coordinates betweens layers to align their outputs for fusion or mapping output pixels to their corresponding input pixels.

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/cd15d6b7-a087-4f99-9af9-c20fddc2980a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages