jbilcke-hf commited on
Commit
c2b3ca9
·
1 Parent(s): 415317a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -562,6 +562,7 @@ def run_anything_task(input_image, text_prompt, box_threshold, text_threshold,
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])
566
  print("id: " + str(i))
567
  print("box: " + str(boxes_filt[i].tolist()))
 
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
+ print("pred_phrases[i] = " + str(pred_phrases[i]))
566
  label, score = parse_label_and_score(pred_phrases[i])
567
  print("id: " + str(i))
568
  print("box: " + str(boxes_filt[i].tolist()))