paugar commited on
Commit
0e6725f
·
verified ·
1 Parent(s): 7586121

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def process_img(image):
31
  result = model(y)
32
 
33
 
34
- restored_img = result.squeeze().permute(1,2,0).clamp_(0, 1).cpu().detach().numpy()
35
  restored_img = np.clip(restored_img, 0. , 1.)
36
 
37
  restored_img = (restored_img * 255.0).round().astype(np.uint8) # float32 to uint8
 
31
  result = model(y)
32
 
33
 
34
+ restored_img = result.permute(1,2,0).clamp_(0, 1).cpu().detach().numpy()
35
  restored_img = np.clip(restored_img, 0. , 1.)
36
 
37
  restored_img = (restored_img * 255.0).round().astype(np.uint8) # float32 to uint8