osbm commited on
Commit
cd8aa5a
·
verified ·
1 Parent(s): 65e5c64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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