Skip to content
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

I run th train.lua, but met this error: #1

Open
bemoregt opened this issue Jul 25, 2017 · 7 comments
Open

I run th train.lua, but met this error: #1

bemoregt opened this issue Jul 25, 2017 · 7 comments

Comments

@bemoregt
Copy link

HI, @garythung

I run th train.lua, but met this error:

17:47:34 weightDecay = 0.025
17:47:34 learningRate = 1.25e-05
17:47:34 Starting training for 100 epochs
/tmp/luarocks_cunn-scm-1-4893/cunn/lib/THCUNN/ClassNLLCriterion.cu:57: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [7,0,0] Assertion t >= 0 && t < n_classes failed.
/tmp/luarocks_cunn-scm-1-4893/cunn/lib/THCUNN/ClassNLLCriterion.cu:57: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [27,0,0] Assertion t >= 0 && t < n_classes failed.
THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-9564/cutorch/lib/THC/generic/THCStorage.c line=32 error=59 : device-side assert triggered
/home/ctilab/torch/install/bin/luajit: cuda runtime error (59) : device-side assert triggered at /tmp/luarocks_cutorch-scm-1-9564/cutorch/lib/THC/generic/THCStorage.c:32
stack traceback:

What's wrong with me?

My CUDA & Luarocks Package install is allright, may be..

@skgdeepak
Copy link

@bemoregt did you solve it?? did u get the output??

@skgdeepak
Copy link

@garythung please reply why this error is occuring

@garythung
Copy link
Owner

Hey guys, I don't work on this anymore so I won't be of too much assistance.

The error seems to be because of the number of classes (my fault). Try -numClasses 6 when you run the training, that should fix it.

@bemoregt
Copy link
Author

Thanks a lot ~

@garythung
Copy link
Owner

Did it fix the error?

@skgdeepak
Copy link

No. Please send the full command to run train.lua

@garythung
Copy link
Owner

Try th train.lua -numClasses 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants