Spaces:
Running
on
Zero
Running
on
Zero
remove .value, because Gradio already unwraps gr.State
Browse files
app.py
CHANGED
@@ -148,8 +148,8 @@ def sam_process(input_image, checkpoint, tracking_points, trackings_input_label)
|
|
148 |
|
149 |
predictor.set_image(image)
|
150 |
|
151 |
-
input_point = np.array(tracking_points
|
152 |
-
input_label = np.array(trackings_input_label
|
153 |
|
154 |
print(predictor._features["image_embed"].shape, predictor._features["image_embed"][-1].shape)
|
155 |
|
|
|
148 |
|
149 |
predictor.set_image(image)
|
150 |
|
151 |
+
input_point = np.array(tracking_points)
|
152 |
+
input_label = np.array(trackings_input_label)
|
153 |
|
154 |
print(predictor._features["image_embed"].shape, predictor._features["image_embed"][-1].shape)
|
155 |
|