lime-j commited on
Commit
a0d8acf
·
1 Parent(s): 4307361

update code

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def predict(img):
26
  with torch.no_grad():
27
  img=align(img)
28
  image_tensor=TF.to_tensor(img).cpu()
29
- image_tensor=image_tensor.unsqueeze(0).cuda()
30
  ipt=net_c(image_tensor)
31
  image_tensor = image_tensor.half()
32
  ipt = ipt.half()
 
26
  with torch.no_grad():
27
  img=align(img)
28
  image_tensor=TF.to_tensor(img).cpu()
29
+ image_tensor=image_tensor.unsqueeze(0).cpu()
30
  ipt=net_c(image_tensor)
31
  image_tensor = image_tensor.half()
32
  ipt = ipt.half()