support fast-rcnn style input reshape in Matcaffe#2629
support fast-rcnn style input reshape in Matcaffe#2629qinhongwei wants to merge 1 commit intoBVLC:masterfrom
Conversation
… input images of arbitrary size, as the previous matcaffe did
|
After double check, I found the current matcaffe #2505 can perform arbitrary size input at the cost that you reshape the net in matlab every time you forward. e.g. So it's user's choice. Personally, I prefer the way of the caffe-fast-rcnn matcaffe. So I'll keep this PR open :) |
|
Personally I prefer the current way since it is consistent with pycaffe. Note: after calling
I don't remember that. Maybe it is supported in a custom branch? |
|
When we want to get a response map of the input data, matcaffe sends the input data to Caffe and receives output data from Caffe, so So it is in
Sorry I made it confusing. It was caffe-fast-rcnn branch. |
Yes, you are right. I see that all layers get reshaped automatically when you call net.forward(), since in https://github.com/BVLC/caffe/blob/master/include/caffe/layer.hpp#L409 every layer reshape itself before running forward. |
This PR brings the arbitrary input size support, as in caffe-fast-rcnn
When dealing with fully convolutional networks forward for response map, arbitrary image size support is kind of necessary.