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

Cuda unavailable issue when running the demo.py with parameters of 'cuda device' #26

Open
FlemingH opened this issue Sep 9, 2021 · 8 comments

Comments

@FlemingH
Copy link

FlemingH commented Sep 9, 2021

No description provided.

@FlemingH
Copy link
Author

FlemingH commented Sep 9, 2021

  1. Change default parameters of --device to “cuda device”
    image

  2. Run the demo.py
    image

@FlemingH
Copy link
Author

FlemingH commented Sep 9, 2021

If you print the 'torch.cuda.is_available()' before select_device function
image

Problem Solved
image

@FlemingH
Copy link
Author

FlemingH commented Sep 9, 2021

可以检查一下为什么嘛,谢谢!

@akashchgupta
Copy link

If you print the 'torch.cuda.is_available()' before select_device function
image

Problem Solved
image

And, why exactly is that?

@FlemingH
Copy link
Author

@akashchgupta If you're having the same output, that's what I'm asking

@danielzhangau
Copy link
Contributor

  1. Change default parameters of --device to “cuda device”
    image
  2. Run the demo.py
    image

the 'Cuda available' is the description, you should choose from 0,1,2 or CPU. If you have only one GPU, then just use 0 as the default option.

@husaixy
Copy link

husaixy commented Apr 19, 2023

A new possibility is that if your environment is anaconda, the default torch installation is the cpu version

@KNzzzzzzzzzz
Copy link

image
This can solve the 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

5 participants