dear caffe users;
I was trying to convert a trained caffe network (stored in .caffemodel format) into a Matlab struct which is to be used with Matconvnet. It is a LeNet-5 with: conv1-pool1-conv2-pool2-fc1-relu-fc2-softmax
The feature map (output) of the pool2 layer has size 4x4x80 and this output is to be fully connected to 500 neurons at fc1. when I use the matlab interface command of caffe :
weights=net.params('fc1', 1).get_data() to store the weights into an array, I obtain a 2 dimensional single array of size 1280x500. However, for Matconvnet, I need to know exactly which weight is to be connected to which filter output ,that is , I need to have a 4-D array having size 4x4x80x500.
Does anyone know how to do this??
Thank You