milesial / Pytorch-UNet

PyTorch implementation of the U-Net for image semantic segmentation with high quality images
GNU General Public License v3.0
9.3k stars 2.51k forks source link

torch is not detecting any cuda. #463

Open angela804 opened 1 year ago

angela804 commented 1 year ago

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

IshanG97 commented 10 months ago

Having a similar issue. Are you using WSL?

angela804 commented 10 months ago

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

hanyiwei799 commented 7 months ago

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 commented 7 months ago

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

BenjaminSchaar commented 6 months ago

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

BenjaminSchaar commented 6 months ago

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

-> this always shows none available

angela804 commented 6 months ago

@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 commented 6 months ago

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

BenjaminSchaar commented 6 months ago

thanks alot i will try it!