Why doesnt activations() function work on regression output layer in a CNN imported from caffe using ImportCaffeNetwork?
1 view (last 30 days)
Show older comments
Hi, I have a pretrained Image to Image Regression network in caffe. I have imported it into Matlab (2017b) using importCaffeNetwork(). I am using activations functions in matlab to visualize the output
activations(cnn30,imtest,'conv4','OutputAs', 'channels');
Where 'conv4' is the last layer. So activation of conv4 is my output image. but it gives following error.
-----
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Error in SeriesNetwork/activations (line 788)
Y(indices{:}) = reshapeFcn(YChannelFormat, numel(observationIndex));
-----
Interesting thing is that it works totally fine on layers above the last layer. for example same activations works fine on 'conv3' and returns a 96x96x8 array.
Plz help.
0 Comments
Answers (0)
See Also
Categories
Find more on Install Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!