SimSwap icon indicating copy to clipboard operation
SimSwap copied to clipboard

Error about mistake in code

Open ssbugman opened this issue 2 years ago • 2 comments

Traceback (most recent call last): File "P:\SimSwapmain\test_one_image.py", line 30, in opt = TestOptions().parse() File "P:\SimSwapmain\options\base_options.py", line 84, in parse torch.cuda.set_device(self.opt.gpu_ids[0]) File "C:\Python310\lib\site-packages\torch\cuda_init_.py", line 313, in set_device torch._C._cuda_setDevice(device) AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

ssbugman avatar Jun 13 '22 09:06 ssbugman

Which Pytorch version are you using ?

BeaverInGreenland avatar Jun 13 '22 12:06 BeaverInGreenland

First I tried that in Preparations, and got "GeForce RTX 3080 with CUDA capability sm_86 is not compatible with the current PyTorch installation." After that i tried new PyTorch version and getting this error.

ssbugman avatar Jun 13 '22 15:06 ssbugman