Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|