Ryan-PR commited on
Commit
48ed71c
·
verified ·
1 Parent(s): 630075f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -319,6 +319,7 @@ def clear_ref_clicks(ref_state):
319
  return Image.fromarray(ref_state["origin_image"])
320
 
321
 
 
322
  @spaces.GPU(duration=40)
323
  def track_video(n_frames, video_state):
324
  input_points = video_state["input_points"]
@@ -398,6 +399,7 @@ def track_video(n_frames, video_state):
398
  return video_file, video_state
399
 
400
 
 
401
  @spaces.GPU(duration=150)
402
  def inference_and_return_video(
403
  dilate_radius,
 
319
  return Image.fromarray(ref_state["origin_image"])
320
 
321
 
322
+ @torch.no_grad()
323
  @spaces.GPU(duration=40)
324
  def track_video(n_frames, video_state):
325
  input_points = video_state["input_points"]
 
399
  return video_file, video_state
400
 
401
 
402
+ @torch.no_grad()
403
  @spaces.GPU(duration=150)
404
  def inference_and_return_video(
405
  dilate_radius,