juaben commited on
Commit
0c35185
·
verified ·
1 Parent(s): f3f4935

Update app.py

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