DCPDN icon indicating copy to clipboard operation
DCPDN copied to clipboard

run without cuda and GPU

Open mod1998 opened this issue 6 years ago • 5 comments

mod1998 avatar Jul 23 '18 06:07 mod1998

when I run "python demo.py --dataroot ./facades/nat_new4 --valDataroot ./facades/nat_new4 --netG ./demo_model/netG_epoch_8.pth" without cuda and GPU,I get that: self.prev_idx = torch._C._cuda_getDevice() RuntimeError: cuda runtime error (35) : CUDA driver version is insufficient for CUDA runtime version at torch/csrc/cuda/Module.cpp:51

mod1998 avatar Jul 23 '18 06:07 mod1998

If you want to run without cuda and GPU, please change the code to non-gpu version. For example, please remove xx.cuda() and make all the tensor and loss functions in cpu version.

hezhangsprinter avatar Jul 23 '18 15:07 hezhangsprinter

Have you get the cpu version of this code?

ShiqiLi047 avatar Oct 16 '19 14:10 ShiqiLi047

Can you please help with the cpu version of this code?

chinmayee521 avatar Mar 27 '20 06:03 chinmayee521

Replace .cuda() with .to(device) or .cpu() in your code

daiqingyue avatar Feb 22 '23 02:02 daiqingyue