Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def get_mask(img, num_people_keep, dilate_kernel_size):
|
|
89 |
full_mask = full_mask + blank_mask*instance_mask.to("cpu").numpy()
|
90 |
|
91 |
full_mask = full_mask.reshape((img.shape[0],img.shape[1],1))
|
92 |
-
mask =
|
93 |
|
94 |
# Dilation
|
95 |
kernel = np.ones((dilate_kernel_size, dilate_kernel_size), np.uint8)
|
|
|
89 |
full_mask = full_mask + blank_mask*instance_mask.to("cpu").numpy()
|
90 |
|
91 |
full_mask = full_mask.reshape((img.shape[0],img.shape[1],1))
|
92 |
+
mask = full_mask.astype(np.uint8)
|
93 |
|
94 |
# Dilation
|
95 |
kernel = np.ones((dilate_kernel_size, dilate_kernel_size), np.uint8)
|