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 > resources' 카테고리의 다른 글
| How to generate confusion matrix in MatConvNet (0) | 2017.05.15 |
|---|---|
| PyTorch Tutorial (0) | 2017.05.13 |
| TensorFlow Tutorial #16 Reinforcement Learning (0) | 2017.04.24 |
| How to Use Timesteps in LSTM Networks for Time Series Forecasting - Machine Learning Mastery (0) | 2017.04.18 |
| How to Use Timesteps in LSTM Networks for Time Series Forecasting - Machine Learning Mastery (0) | 2017.04.17 |


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) ;