-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assertition failed vl_simplenn.m #34
Comments
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 |
Thanks, the best CNN toolkit ever. |
fixes small typos Approved-by: Karel Lenc <lenckarel@gmail.com> Approved-by: Joao Henriques <jotaf98@hotmail.com>
Where should place the command |
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) ;
The text was updated successfully, but these errors were encountered: