-
Notifications
You must be signed in to change notification settings - Fork 752
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
error on cnn_minst #51
Comments
I solved that problem but right now I have this error: Error in vl_nnsoftmaxloss (line 58) Error in vl_simplenn (line 163) Error in cnn_train (line 140) Error in cnn_mnist (line 118) I guess because of bathes number does not fit with my data set. I have 300 training images. Would you please help me to choose the appropriate batch number. |
This seems more like an error in the labels - softmax needs to have size(X,3) to be equal to number of classes, and also the labels must be among [1...NumClasses]. Isn't it possible that some of your labels are bigger than 2, considering that you are doing binary classification? |
Thanks a lot for your quick response, I am not using binary classification I have 13 classes, |
Sure you can, it's just that the last conv layer must have 13 filters (so that you get 13 responses) and your labels must be between 1..13 (so that the indexing X(c_) won't fail). |
Thanks a lot I changed the last layer but I have this error now: Error in vl_simplenn (line 163) Error in cnn_mnist (line 125) would you please help me to solve that error. |
The training is working now but when I try test new image using vl_simplenn () I have this error : Error in vl_simplenn (line 163) Error in cnn_mnist (line 125) |
Change the last layer of your network from softmaxloss() to softmax() and
|
Thx , I did that but I have this error: Error in vl_nnsoftmax (line 30) Error in vl_simplenn (line 211) Error in cnn_train (line 140) Error in cnn_mnist (line 118) |
Should I change it before the training or after? |
Only change it for testing. During training you always need a scalar loss 2015-01-26 18:40 GMT+01:00 amar2015 notifications@github.com:
Technische Universität München__Felix Achilles, M.Sc.* · *Faculty of achilles@in.tum.de *· *campar.in.tum.de |
thank you so much, it worked out finally. |
hi i am new to use CNN toolbox i also have following errorlearning rate changed (0.000000 --> 0.001000): resetting momentum Error in vl_nnsoftmax (line 30) Error in vl_simplenn (line 211) Error in cnn_train (line 140) Error in reidentification (line 75) i dont know whats wrong with the following networknet.layers = {} ; % 2 pool1 (max pool) % 10 ip1 % 11 ip2 net.layers{end+1} = struct('type', 'softmax') ;Please guide me in this regard |
hi
thanks a lot for offering that great tool box. I am trying to run cnn_mint but I have this error:
learning rate changed (0.000000 --> 0.001000): resetting momentum
training: epoch 01: processing batch 1 of 600 ...Error using .*
Array dimensions must match for binary array op.
Error in vl_nnsoftmax (line 30)
Y = Y .* bsxfun(@minus, dzdY, sum(dzdY .* Y, 3)) ;
Error in vl_simplenn (line 211)
res(i).dzdx = vl_nnsoftmax(res(i).x, res(i+1).dzdx) ;
Error in cnn_train (line 140)
res = vl_simplenn(net, im, one, res, ...
Error in cnn_mnist (line 75)
[net, info] = cnn_train(net, imdb, @GetBatch, ...
I really appreciate it if you help to solve that error because I am trying to use the library to classify my own data.
The text was updated successfully, but these errors were encountered: