Update app.py
Browse files
app.py
CHANGED
|
@@ -75,8 +75,8 @@ def transform_image(image):
|
|
| 75 |
|
| 76 |
def predict(img):
|
| 77 |
img = PIL.Image.fromarray(img, "RGB")
|
| 78 |
-
image = transforms.
|
| 79 |
-
tensor = transform_image(image=
|
| 80 |
|
| 81 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 82 |
learner.to(device)
|
|
|
|
| 75 |
|
| 76 |
def predict(img):
|
| 77 |
img = PIL.Image.fromarray(img, "RGB")
|
| 78 |
+
#image = transforms.Resize((480,640))(img)
|
| 79 |
+
tensor = transform_image(image=img)
|
| 80 |
|
| 81 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 82 |
learner.to(device)
|