snicolau commited on
Commit
a9d7705
Β·
verified Β·
1 Parent(s): 1ba3f94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = (cv2.cvtColor(full_mask, cv2.COLOR_GRAY2RGBA)).astype(np.uint8)
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)