Spaces:
Paused
Paused
Commit
·
32a0418
1
Parent(s):
d76c00a
Update app.py
Browse files
app.py
CHANGED
|
@@ -559,7 +559,7 @@ def run_anything_task(input_image, text_prompt, box_threshold, text_threshold,
|
|
| 559 |
results = []
|
| 560 |
|
| 561 |
for i, mask in enumerate(masks):
|
| 562 |
-
color = np.concatenate([np.random.random(3), np.array([
|
| 563 |
# color = np.array([30/255, 144/255, 255/255, 0.6])
|
| 564 |
show_mask(mask.cpu().numpy(), plt.gca(), color)
|
| 565 |
label, score = parse_label_and_score(pred_phrases[i])
|
|
|
|
| 559 |
results = []
|
| 560 |
|
| 561 |
for i, mask in enumerate(masks):
|
| 562 |
+
color = np.concatenate([np.random.random(3), np.array([1])], axis=0)
|
| 563 |
# color = np.array([30/255, 144/255, 255/255, 0.6])
|
| 564 |
show_mask(mask.cpu().numpy(), plt.gca(), color)
|
| 565 |
label, score = parse_label_and_score(pred_phrases[i])
|