pedrogengo commited on
Commit
ebe933f
·
1 Parent(s): 8e1cf8c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -216,7 +216,7 @@ map_style_losses = {
216
 
217
 
218
  if __name__ == "__main__":
219
- device = 'cuda' if torch.cuda.is_available else 'cpu'
220
  vgg16 = models.vgg16(weights=models.VGG16_Weights.IMAGENET1K_V1).to(device)
221
  vgg16.eval()
222
  vgg16 = vgg16.features
 
216
 
217
 
218
  if __name__ == "__main__":
219
+ device = 'cuda' if torch.cuda.is_available() else 'cpu'
220
  vgg16 = models.vgg16(weights=models.VGG16_Weights.IMAGENET1K_V1).to(device)
221
  vgg16.eval()
222
  vgg16 = vgg16.features