YOLOP
YOLOP copied to clipboard
Cuda unavailable issue when running the demo.py with parameters of 'cuda device'
-
Change default parameters of --device to “cuda device”
-
Run the demo.py
If you print the 'torch.cuda.is_available()' before select_device function
Problem Solved
可以检查一下为什么嘛,谢谢!
If you print the 'torch.cuda.is_available()' before select_device function
Problem Solved
And, why exactly is that?
@akashchgupta If you're having the same output, that's what I'm asking
- Change default parameters of --device to “cuda device”
![]()
- Run the demo.py
![]()
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.
A new possibility is that if your environment is anaconda, the default torch installation is the cpu version
This can solve the problem.