Why doesnt activations() function work on regression output layer in a CNN imported from caffe using ImportCaffeNetwork?

1 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by