Update App_main.py
Browse files- App_main.py +1 -1
App_main.py
CHANGED
|
@@ -13,7 +13,7 @@ device = 'cuda:0' if torch.cuda.is_available() else 'cpu'
|
|
| 13 |
|
| 14 |
def construct_sample(img, mean=0.5, std=0.5):
|
| 15 |
img = transforms.ToTensor()(img)
|
| 16 |
-
img = transforms.Resize(48, InterpolationMode.BICUBIC)(img)
|
| 17 |
img = transforms.Normalize(mean, std)(img)
|
| 18 |
return img
|
| 19 |
|
|
|
|
| 13 |
|
| 14 |
def construct_sample(img, mean=0.5, std=0.5):
|
| 15 |
img = transforms.ToTensor()(img)
|
| 16 |
+
img = transforms.Resize((48, 48), InterpolationMode.BICUBIC)(img)
|
| 17 |
img = transforms.Normalize(mean, std)(img)
|
| 18 |
return img
|
| 19 |
|