KupynOrest / DeblurGAN

Image Deblurring using Generative Adversarial Networks
Other
2.5k stars 517 forks source link

module 'torch._C' has no attribute '_cuda_setDevice' #74

Open princebhatia09 opened 6 years ago

KupynOrest commented 6 years ago

Could you please specify the error and the command you use to run the code?

princebhatia09 commented 6 years ago

(base) C:\Users\prince.bhatia\Desktop\DeblurGAN-master\DeblurGAN-master>python t est.py --dataroot C:\Users\prince.bhatia\Desktop\DeblurGAN-master\DeblurGAN-mast er\blur --model test --dataset_mode single --learn_residual Traceback (most recent call last): File "test.py", line 13, in opt = TestOptions().parse() File "C:\Users\prince.bhatia\Desktop\DeblurGAN-master\DeblurGAN-master\options \base_options.py", line 61, in parse torch.cuda.set_device(self.opt.gpu_ids[0]) File "C:\Users\prince.bhatia\AppData\Local\Continuum\anaconda3\lib\site-packag es\torch\cudainit.py", line 262, in set_device torch._C._cuda_setDevice(device) AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

This is the error i received

RRRzhou commented 6 years ago

I'm having the same problem ! Have you solved it ?

freedomofme commented 5 years ago

I found solution, look at here: https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/issues/67