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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Install Products에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!