Update app.py
Browse files
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 =
|
| 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))
|