Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,7 @@ def track_video(n_frames,video_state):
|
|
248 |
video_predictor_local = build_sam2_video_predictor(config, sam2_checkpoint, device="cuda")
|
249 |
|
250 |
inference_state = video_predictor_local.init_state(images=images/255, device="cuda")
|
251 |
-
video_state["inference_state"] = inference_state
|
252 |
|
253 |
if len(torch.from_numpy(video_state["masks"][0]).shape) == 3:
|
254 |
mask = torch.from_numpy(video_state["masks"][0])[:,:,0]
|
|
|
248 |
video_predictor_local = build_sam2_video_predictor(config, sam2_checkpoint, device="cuda")
|
249 |
|
250 |
inference_state = video_predictor_local.init_state(images=images/255, device="cuda")
|
251 |
+
#video_state["inference_state"] = inference_state #cause bug
|
252 |
|
253 |
if len(torch.from_numpy(video_state["masks"][0]).shape) == 3:
|
254 |
mask = torch.from_numpy(video_state["masks"][0])[:,:,0]
|