Pytorch-UNet icon indicating copy to clipboard operation
Pytorch-UNet copied to clipboard

torch is not detecting any cuda.

Open angela804 opened this issue 1 year ago • 9 comments

curious but whenever I train a model, it's always using CPU and never gpu. I'm confused why it's not detecting any cuda when i have cuda already installed

angela804 avatar Oct 19 '23 11:10 angela804

Having a similar issue. Are you using WSL?

IshanG97 avatar Jan 07 '24 18:01 IshanG97

Having a similar issue. Are you using WSL?

there's something wrong with the CUDA and the Pytorch versions. I think my CUDAs are from an older version so I just reinstalled all of my CUDAs and it worked

angela804 avatar Jan 08 '24 02:01 angela804

Having a similar issue. Are you using WSL?

there's something wrong with the CUDA and the Pytorch versions. I think my CUDAs are from an older version so I just reinstalled all of my CUDAs and it worked

My cuda is already 11.8 and still have this problem

hanyiwei799 avatar Apr 22 '24 13:04 hanyiwei799

Having a similar issue. Are you using WSL?

there's something wrong with the CUDA and the Pytorch versions. I think my CUDAs are from an older version so I just reinstalled all of my CUDAs and it worked

Can you tell me more about how you solved it

hanyiwei799 avatar Apr 22 '24 13:04 hanyiwei799

I also have this problem cuda canno't find any GPUS even though they are existing

BenjaminSchaar avatar May 14 '24 12:05 BenjaminSchaar

print(torch.cuda.is_available()) print(torch.version.cuda)

-> this always shows none available

BenjaminSchaar avatar May 14 '24 12:05 BenjaminSchaar

@hanyiwei799 @BenjaminSchaar solved this one around november last year so my memory is kind of boggly, but, as far as I remember, cuda and pytorch versions were conflicting. so, instead of just installing the pytorch from here, I uninstalled my cuda first, and reinstalled it again with latest versions. image

angela804 avatar May 15 '24 03:05 angela804

you can not follow that command, i just show that to make sure we're on the same thing

angela804 avatar May 15 '24 03:05 angela804

thanks alot i will try it!

BenjaminSchaar avatar May 15 '24 07:05 BenjaminSchaar