Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,7 +197,7 @@ def process_sample_detection(main_image, sample_image, match_threshold):
|
|
| 197 |
# Step 2: 用 Sam3Tracker 的 box prompt 做精细分割
|
| 198 |
inputs = processor(
|
| 199 |
images=main_image,
|
| 200 |
-
input_boxes=[[
|
| 201 |
return_tensors="pt"
|
| 202 |
).to(device)
|
| 203 |
|
|
|
|
| 197 |
# Step 2: 用 Sam3Tracker 的 box prompt 做精细分割
|
| 198 |
inputs = processor(
|
| 199 |
images=main_image,
|
| 200 |
+
input_boxes=[[box]],
|
| 201 |
return_tensors="pt"
|
| 202 |
).to(device)
|
| 203 |
|