You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I then got AssertionError: Torch not compiled with CUDA enabled errors in models/sparse_wgangp_pix2pix_model.py lines 113 (z= z.cuda()) and 123 (self.label = self.label.cuda()), so I changed them to:
if torch.cuda.is_available(): z= z.cuda()
and
if torch.cuda.is_available(): self.label = self.label.cuda()
That gets me past those errors, but then line 76 calls self.netG.cuda(). A debugger shows that the if statement gating this line (if self.isTrain) is indeed False.
Any advice?
The text was updated successfully, but these errors were encountered:
On my mac laptop (no CUDA), I installed all the dependencies and downloaded all the pre-trained models.
I then ran the example line, with
--gpu_ids -1
to use the CPU version:I then got
AssertionError: Torch not compiled with CUDA enabled
errors inmodels/sparse_wgangp_pix2pix_model.py
lines 113 (z= z.cuda()
) and 123 (self.label = self.label.cuda()
), so I changed them to:and
That gets me past those errors, but then line 76 calls
self.netG.cuda()
. A debugger shows that the if statement gating this line (if self.isTrain
) is indeedFalse
.Any advice?
The text was updated successfully, but these errors were encountered: