polejowska commited on
Commit
7923a1c
1 Parent(s): 0592643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -46,12 +46,12 @@ def detect_objects(model_name, image_input, threshold, display_mask=False, img_i
46
  mask_pil_image = img_input_mask
47
 
48
  viz_img = visualize_prediction(
49
- image_input,
50
- processed_outputs,
51
- threshold,
52
- model.config.id2label,
53
- display_mask,
54
- mask_pil_image
55
  )
56
  decoder_attention_map_img = visualize_attention_map(
57
  image_input, decoder_attention_map
 
46
  mask_pil_image = img_input_mask
47
 
48
  viz_img = visualize_prediction(
49
+ pil_img=image_input,
50
+ output_dict=processed_outputs,
51
+ threshold=threshold,
52
+ id2label=model.config.id2label,
53
+ display_mask=display_mask,
54
+ mask=mask_pil_image
55
  )
56
  decoder_attention_map_img = visualize_attention_map(
57
  image_input, decoder_attention_map