PengWeixuanSZU commited on
Commit
886e420
·
verified ·
1 Parent(s): 6047cd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]