Commonly we extract features using:

net = googlenet()

%Extract features

featureLayer = 'pool5-drop_7x7_s1'; #the last layer before softmax

How to extract features from a different layer earlier in the network? I am attempting to extract from a different layer but the output of the layer is in 4D. I tried to use squeeze function but its not working for those layers other than the last layer. Did anyone find success in this task? Kindly assist.

More Sivaramakrishnan Rajaraman's questions See All
Similar questions and discussions