fffiloni commited on
Commit
8dda03b
·
verified ·
1 Parent(s): 506f88f

remove .value, because Gradio already unwraps gr.State

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.value)
152
- input_label = np.array(trackings_input_label.value)
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