Can you share your deploy file? I see the output size of prepare_image(x) is w h c batchsize ,but the input size of caffe is batchsize chanel w h . so when i run demo ,dimension always wrong,I don't know why
weights_LR = net.params('CAM_fc_car',1).get_data();% get the softmax layer of the network
scores = net.forward({prepare_image(img)});% extract conv features online
activation_lastconv = net.blobs('CAM_conv').get_data();
weights_LR = net.params('CAM_fc_car',1).get_data();% get the softmax layer of the network
what is CAM_fc_car' and CAM_conv