Update app.py
Browse files
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.)
|