polejowska commited on
Commit
e20e148
1 Parent(s): 9b91786

Update visualization.py

Browse files
Files changed (1) hide show
  1. visualization.py +0 -4
visualization.py CHANGED
@@ -11,10 +11,6 @@ from utils import fig2img
11
  def visualize_prediction(
12
  pil_img, output_dict, threshold=0.7, id2label=None, display_mask=False, mask=None
13
  ):
14
- print(display_mask)
15
- print(mask)
16
- print(type(mask))
17
-
18
  keep = output_dict["scores"] > threshold
19
  boxes = output_dict["boxes"][keep].tolist()
20
  scores = output_dict["scores"][keep].tolist()
 
11
  def visualize_prediction(
12
  pil_img, output_dict, threshold=0.7, id2label=None, display_mask=False, mask=None
13
  ):
 
 
 
 
14
  keep = output_dict["scores"] > threshold
15
  boxes = output_dict["boxes"][keep].tolist()
16
  scores = output_dict["scores"][keep].tolist()