YOLOP icon indicating copy to clipboard operation
YOLOP copied to clipboard

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

Open FlemingH opened this issue 3 years ago • 8 comments

FlemingH avatar Sep 09 '21 14:09 FlemingH

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

  2. Run the demo.py image

FlemingH avatar Sep 09 '21 14:09 FlemingH

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

Problem Solved image

FlemingH avatar Sep 09 '21 14:09 FlemingH

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

FlemingH avatar Sep 09 '21 14:09 FlemingH

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

Problem Solved image

And, why exactly is that?

akashchgupta avatar Sep 16 '21 03:09 akashchgupta

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

FlemingH avatar Sep 16 '21 07:09 FlemingH

  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.

danielzhangau avatar Nov 12 '21 05:11 danielzhangau

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

husaixy avatar Apr 19 '23 11:04 husaixy

image This can solve the problem.

KNzzzzzzzzzz avatar Jan 08 '24 06:01 KNzzzzzzzzzz