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

CuDNN error: CUDNN_STATUS_INTERNAL_ERROR #20

Open
J-zin opened this issue Oct 31, 2018 · 5 comments
Open

CuDNN error: CUDNN_STATUS_INTERNAL_ERROR #20

J-zin opened this issue Oct 31, 2018 · 5 comments

Comments

@J-zin
Copy link

J-zin commented Oct 31, 2018

hi, i use it to train for my own data set, but it run error, can u give me some suggestion? (my segmentation class img is gray image).

/opt/conda/conda-bld/pytorch_1532581333611/work/aten/src/THCUNN/SpatialClassNLLCriterion.cu:99: void cunn_SpatialClassNLLCriterion_updateOutput_kernel(T *, T *, T *, long *, T *, int, int, int, int, int, long) [with T = float, AccumT = float]: block: [3,0,0], thread: [190,0,0] Assertion t >= 0 && t < n_classes failed.
/opt/conda/conda-bld/pytorch_1532581333611/work/aten/src/THCUNN/SpatialClassNLLCriterion.cu:99: void cunn_SpatialClassNLLCriterion_updateOutput_kernel(T *, T *, T *, long *, T *, int, int, int, int, int, long) [with T = float, AccumT = float]: block: [3,0,0], thread: [191,0,0] Assertion t >= 0 && t < n_classes failed.
Traceback (most recent call last):
File "train.py", line 234, in
main()
File "train.py", line 215, in main
loss.backward()
File "/home/zhangjunyi/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/tensor.py", line 93, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/home/zhangjunyi/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/autograd/init.py", line 90, in backward
allow_unreachable=True) # allow_unreachable flag
RuntimeError: CuDNN error: CUDNN_STATUS_INTERNAL_ERROR

@J-zin
Copy link
Author

J-zin commented Oct 31, 2018

i got it, the gray num must be lower than the class nums!!!

@Raven1327
Copy link

i got it, the gray num must be lower than the class nums!!!

I got the same problem. Could you please teach me how to fix it?

@speedinghzl
Copy link
Owner

speedinghzl commented Jan 7, 2019

@Raven1327 Do you run this repo on PASCAL VOC dataset or another dataset? You can simply modify the NUM_CLASSES in this line for your dataset.

@Raven1327
Copy link

@speedinghzl Thanks for your help. It can run now. I made some mistakes. T-T

@Lixy1997
Copy link

@speedinghzl I use VOC dataset, NUM_CLASSED=21, i also get the same problem

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

4 participants