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

RuntimeError: CUDA error: device-side assert triggered #6

Open
pacho69 opened this issue Mar 2, 2021 · 5 comments
Open

RuntimeError: CUDA error: device-side assert triggered #6

pacho69 opened this issue Mar 2, 2021 · 5 comments

Comments

@pacho69
Copy link

pacho69 commented Mar 2, 2021

When ever i try to run with more then two classes cuda error occurred do i need to change some thing in notebook to run for more classes

Screenshot from 2021-03-02 13-05-43

@trbromley
Copy link
Contributor

Hi @pacho69! It's hard to say without looking more closely at the notebook, but possible reasons for errors could be:

  • A bug introduced while changing the code from two to more than two classes. Are you able to run with more than two classes on CPU (i.e., not trying to run on GPU)?
  • Running with incompatible versions of, e.g., PyTorch. You can see the project requirements here, and can install them using pip install -r requirements.txt.
  • Potentially some incompatibility with the hardware, e.g., need to update drivers. Can you train on GPU with two classes?

Could you share which notebook you are running?

@pacho69
Copy link
Author

pacho69 commented Mar 2, 2021

I have not tried to run more than two classes on CPU secondly i can train two classes on GPU

@trbromley
Copy link
Contributor

Thanks! Looks like it's probably not a hardware issue then, maybe something in the code or getting the right versions of packages.

@pacho69
Copy link
Author

pacho69 commented Mar 2, 2021

As you can see all my requirements already met but the issue still persist
Screenshot from 2021-03-02 18-45-24

@trbromley
Copy link
Contributor

Thanks! How about seeing if you can train on more than two classes with CPU. If it doesn't work, you'll know the problem is unrelated to GPUs and something to do with the code.

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