akhaliq HF Staff commited on
Commit
1cb8d46
·
1 Parent(s): 80305cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def process(text_query, img):
92
  # width (in pixels) of the black strip above the video on which the text queries will be displayed:
93
  text_border_height_per_query = 40
94
 
95
- pred_masks_per_frame = rearrange(torch.stack(window_masks), 'q t 1 h w -> t q h w').numpy()
96
 
97
  vid_frame = apply_mask(pred_masks_per_frame, inst_mask, color / 255.0)
98
  vid_frame = Image.fromarray((vid_frame * 255).astype(np.uint8))
 
92
  # width (in pixels) of the black strip above the video on which the text queries will be displayed:
93
  text_border_height_per_query = 40
94
 
95
+ pred_masks_per_frame = window_masks.numpy()
96
 
97
  vid_frame = apply_mask(pred_masks_per_frame, inst_mask, color / 255.0)
98
  vid_frame = Image.fromarray((vid_frame * 255).astype(np.uint8))