Sanket
commited on
Commit
•
baa2bd3
1
Parent(s):
9196827
1080
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ model2.eval()
|
|
104 |
def predict(input_img, ver):
|
105 |
input_img = Image.open(input_img)
|
106 |
transform = transforms.Compose(
|
107 |
-
[transforms.Resize(
|
108 |
)
|
109 |
input_img = transform(input_img)
|
110 |
input_img = torch.unsqueeze(input_img, 0)
|
|
|
104 |
def predict(input_img, ver):
|
105 |
input_img = Image.open(input_img)
|
106 |
transform = transforms.Compose(
|
107 |
+
[transforms.Resize(1080, Image.BICUBIC), transforms.ToTensor()]
|
108 |
)
|
109 |
input_img = transform(input_img)
|
110 |
input_img = torch.unsqueeze(input_img, 0)
|