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

train error #2

Open
YIHTION opened this issue Dec 12, 2019 · 2 comments
Open

train error #2

YIHTION opened this issue Dec 12, 2019 · 2 comments

Comments

@YIHTION
Copy link

YIHTION commented Dec 12, 2019

I am new for this. When I run train_model1.sh , it has an error. can you give me some tips? thanks!

THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=383 error=11 : invalid argument
/pytorch/aten/src/THCUNN/ClassNLLCriterion.cu:56: void ClassNLLCriterion_updateOutput_no_reduce_kernel(int, THCDeviceTensor<Dtype, 2, int, DefaultPtrTraits>, THCDeviceTensor<long, 1, int, DefaultPtrTraits>, THCDeviceTensor<Dtype, 1, int, DefaultPtrTraits>, Dtype *, int, int) [with Dtype = float]: block: [0,0,0], thread: [32,0,0] Assertion cur_target >= 0 && cur_target < n_classes failed.
/pytorch/aten/src/THCUNN/ClassNLLCriterion.cu:56: void ClassNLLCriterion_updateOutput_no_reduce_kernel(int, THCDeviceTensor<Dtype, 2, int, DefaultPtrTraits>, THCDeviceTensor<long, 1, int, DefaultPtrTraits>, THCDeviceTensor<Dtype, 1, int, DefaultPtrTraits>, Dtype *, int, int) [with Dtype = float]: block: [0,0,0], thread: [33,0,0] Assertion cur_target >= 0 && cur_target < n_classes failed.

@cizhenshi
Copy link
Owner

I'm sorry, I haven't come across this kind of error. It seems like there's a category number mismatch. Have you modified our configuration file?

@YIHTION
Copy link
Author

YIHTION commented Dec 16, 2019

I did not modify the config files,only changed the learning rate follow your instructions。And I made the .pkl files which the training needed by myself,also I modified the PrepareData.py file to get train_0.json and val_0.json. Maybe something is wrong in these operations?
Thank you for your reply!
Best wishes!

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

2 participants