Stable-X commited on
Commit
d9c3e1a
·
verified ·
1 Parent(s): 35b1ef9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -142,6 +142,7 @@ def generate_mask(image: np.ndarray):
142
  mask_np = np.array(mask) / 255.0
143
  return mask_np
144
 
 
145
  @torch.no_grad()
146
  def reconstruct(video_path, conf_thresh, kf_every, as_pointcloud=False, remove_background=False):
147
  # Extract frames from video
 
142
  mask_np = np.array(mask) / 255.0
143
  return mask_np
144
 
145
+ @spaces.GPU
146
  @torch.no_grad()
147
  def reconstruct(video_path, conf_thresh, kf_every, as_pointcloud=False, remove_background=False):
148
  # Extract frames from video