I fed the network defined below with a hdf5 files
name: "match_layers"
layers {
name: "data"
type: HDF5_DATA
top: "feat1"
top: "feat2"
hdf5_data_param {
source: "vgg16_train_test_pair.h5list"
batch_size: 50
}
}
layers {
name: "concat"
bottom: "feat1"
bottom: "feat2"
top: "union"
type: CONCAT
concat_param{
concat_dim: 1
}
}
layers {
bottom: "union"
top: "fc1"
name: "fc1"
type: INNER_PRODUCT
inner_product_param {
num_output: 1024
}
.......
What inside the vgg16_train_test_pair.h5list is:
vgg16_train_test_pair.h5
and the hdf5 files is already exits, I want to get the output of fc1 using matlab interface, I tried:
net = caffe.Net(model, weights, 'test');
a = net.forward();
fc1 = net.blobs('fc1').get_data();
but it didn't work, anyone can help me fix it?