danifei commited on
Commit
ab26cb6
·
verified ·
1 Parent(s): 68e3035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def process_img(image):
33
  y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
34
 
35
  with torch.no_grad():
36
- x_hat = model(y)
37
 
38
  restored_img = x_hat.squeeze().permute(1,2,0).clamp_(0, 1).cpu().detach().numpy()
39
  restored_img = np.clip(restored_img, 0. , 1.)
 
33
  y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
34
 
35
  with torch.no_grad():
36
+ x_hat, _, _, _ = model(y)
37
 
38
  restored_img = x_hat.squeeze().permute(1,2,0).clamp_(0, 1).cpu().detach().numpy()
39
  restored_img = np.clip(restored_img, 0. , 1.)