PengWeixuanSZU commited on
Commit
8c347bd
·
verified ·
1 Parent(s): 7bf9c3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -189,7 +189,7 @@ def inference_and_return_video(dilation_iterations, num_inference_steps, video_s
189
  images = np.array(images)
190
  masks = np.array(masks)
191
  img_tensor, mask_tensor = preprocess_for_removal(images, masks)
192
- mask_tensor = mask_tensor[:,:,:,:1]
193
 
194
  if mask_tensor.shape[1] < mask_tensor.shape[2]:
195
  height = 480
 
189
  images = np.array(images)
190
  masks = np.array(masks)
191
  img_tensor, mask_tensor = preprocess_for_removal(images, masks)
192
+ mask_tensor = mask_tensor[:,:,:]###
193
 
194
  if mask_tensor.shape[1] < mask_tensor.shape[2]:
195
  height = 480