-
Notifications
You must be signed in to change notification settings - Fork 229
CUDA error: device-side assert triggered #221
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
Comments
@Wangwang99999 could you share the annotations file you're using? Just the JSON. |
_annotations.coco.json |
Can you check that your categories are 0-indexed? I did 1-indexing and that was messing things up for me. I switched to 0-indexing and that worked. Btw to debug these type of things, run your code on CPU as the errors will be a lot clearer. |
The ID for "categories" in my JSON starts from 0, and I have also modified the line of code in dert.py where class_name=[c ["name"] for c in anns ["categories"]]. However, when I run train.by, I still get an error: return _VF.cdist (x1, x2, p, None) # type: ignore [attr-defined] How did you solve it? |
Please run it on CPU you will have a better idea of what's going on. And my comment was actually not 100% correct in the end. I had to add a dummy class at index 0 and then my other classes from 1 onward. Only then everything worked also the inference. |
File”…/1ib/pvthon3,11/site-packages/torch/functional.py”, line 1335, in cdist
return _VF.cdist(x1, x2, p, None) #type: ignore(attr-defined)
Runtimeprror: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA LAUNCH BLOCKING=1.
Compile with ‘TORCH_USE_CUDA_DSA’ to enable device-side assertions.
The text was updated successfully, but these errors were encountered: