Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def process_img(image):
|
|
44 |
img = img.astype(np.float32)
|
45 |
|
46 |
resize = transforms.Resize((720, 1280))
|
47 |
-
|
48 |
|
49 |
y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
|
50 |
|
|
|
44 |
img = img.astype(np.float32)
|
45 |
|
46 |
resize = transforms.Resize((720, 1280))
|
47 |
+
img = resize(img)
|
48 |
|
49 |
y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
|
50 |
|