Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,15 +32,17 @@ def greet(image):
|
|
32 |
A.Resize(height=512, width=512),
|
33 |
ToTensorV2(),
|
34 |
])
|
35 |
-
|
36 |
image = inference_transforms(image=image)["image"]
|
37 |
-
|
38 |
image = image.unsqueeze(0)
|
39 |
|
40 |
|
41 |
with torch.no_grad():
|
42 |
mask_pred = torch.sigmoid(model(image))
|
43 |
-
|
|
|
|
|
44 |
return mask_pred[0].numpy()
|
45 |
|
46 |
|
|
|
32 |
A.Resize(height=512, width=512),
|
33 |
ToTensorV2(),
|
34 |
])
|
35 |
+
print(image.shape)
|
36 |
image = inference_transforms(image=image)["image"]
|
37 |
+
print(image.shape)
|
38 |
image = image.unsqueeze(0)
|
39 |
|
40 |
|
41 |
with torch.no_grad():
|
42 |
mask_pred = torch.sigmoid(model(image))
|
43 |
+
|
44 |
+
print(image.shape)
|
45 |
+
print(mask_pred.shape)
|
46 |
return mask_pred[0].numpy()
|
47 |
|
48 |
|