chris-propeller commited on
Commit
64cda1b
·
1 Parent(s): edcc62f

add a comment

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -69,6 +69,7 @@ def sam3_inference(image, text_prompt=None, boxes=None, box_labels=None, points=
69
  raise ValueError(f"Missing label for box {i}")
70
 
71
  if formatted_boxes:
 
72
  processor_kwargs["input_boxes"] = [formatted_boxes]
73
  processor_kwargs["input_boxes_labels"] = [formatted_labels]
74
 
 
69
  raise ValueError(f"Missing label for box {i}")
70
 
71
  if formatted_boxes:
72
+ # Wrap in a single array to indicate batch size of 1
73
  processor_kwargs["input_boxes"] = [formatted_boxes]
74
  processor_kwargs["input_boxes_labels"] = [formatted_labels]
75