https://github.com/vlfeat/matconvnet/issues/34
StevenLOL commented
Contributor
lenck commented on Jan 2 2015
Hi, when you train a model, as a last layer there is usually the However, in general when you want to obtain only class probabilities, you simply change the last layer type to:
And now your call of |
StevenLOL commented on Jan 3 2015
Thanks, the best CNN toolkit ever. |
'Deep Learning > Matconvnet' 카테고리의 다른 글
matconvnet 테스트 이미지에 딥러닝모델 적용하고, 피쳐 뽑아 SVM으로 분류하는 예제 (1) | 2017.05.15 |
---|---|
How to generate confusion matrix in MatConvNet (0) | 2017.05.15 |
Hi,
After run cnn_mnist.m, I have few net-epoch-n.mat models.
To predict one image on mnist , following the example in http://www.vlfeat.org/matconvnet/pretrained
When calling
net=load('./data/mnist-baseline/net-epoch-5.mat');
res=vl_simplenn(net.net, im); % im is just one mnist image whose size is 28*28
I got the error:
Error using vl_nnsoftmaxloss (line 42) Assertion failed.
Error in vl_simplenn (line 164)
res(i+1).x = vl_nnsoftmaxloss(res(i).x, l.class) ;