face-makeup.PyTorch
face-makeup.PyTorch copied to clipboard
Can this be only run on CUDA enabled pytorch?
I am getting assertion error "Torch version is not compiled for CUDA support" when try to run on macosx Mojave.
@naysumyat
A workaround:
- Open up test.py
- Comment out
net.cuda()
andimg = img.cuda()
lines - Add map_location argument to torch.load:
net.load_state_dict(torch.load(cp, map_location=torch.device('cpu')))
@naysumyat
A workaround:
- Open up test.py
- Comment out
net.cuda()
andimg = img.cuda()
lines- Add map_location argument to torch.load:
net.load_state_dict(torch.load(cp, map_location=torch.device('cpu')))
Thank you. it worked.