Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,10 +43,11 @@ def process_img(image):
|
|
43 |
img = img / 255.
|
44 |
img = img.astype(np.float32)
|
45 |
|
46 |
-
|
47 |
-
img = resize(img)
|
48 |
|
49 |
y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
|
|
|
|
|
50 |
|
51 |
with torch.no_grad():
|
52 |
x_hat = model(y)
|
|
|
43 |
img = img / 255.
|
44 |
img = img.astype(np.float32)
|
45 |
|
46 |
+
|
|
|
47 |
|
48 |
y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
|
49 |
+
resize = transforms.Resize((720, 1280))
|
50 |
+
y = resize(y)
|
51 |
|
52 |
with torch.no_grad():
|
53 |
x_hat = model(y)
|