Spaces:
Running
on
L4
Running
on
L4
Commit
·
64cda1b
1
Parent(s):
edcc62f
add a comment
Browse files
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 |
|