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