I have a Caffe CNN model, and I am trying to import it to MATLAB using importCaffeNetwork
command, which gets prototxt and caffemodel files as input arguments.
However, I get this error:
The pooling layer 'pool1' is not compatible with MATLAB. Caffe computes the output size as [16 16 32] but MATLAB computes it as [15 15 32]
It seems that the error is related to the difference in output size calculation of pooling layer in MATLAB and CAFFE, where the former uses ceil
and the latter uses floor
function.
Is it the real source of problem? What can I do to solve this?