Spaces:
Running
Running
fix gpu
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def get_dust3r_args_parser():
|
|
| 59 |
return parser
|
| 60 |
|
| 61 |
|
| 62 |
-
@spaces.GPU(duration=
|
| 63 |
def run_dust3r(inputfiles, input_path=None):
|
| 64 |
|
| 65 |
if input_path is not None:
|
|
@@ -154,7 +154,7 @@ def run_dust3r(inputfiles, input_path=None):
|
|
| 154 |
|
| 155 |
return outfile, feat_image_path, opt, None, None
|
| 156 |
|
| 157 |
-
@spaces.GPU(duration=
|
| 158 |
def run_feat2gs(opt, niter=2000):
|
| 159 |
|
| 160 |
if opt is None:
|
|
@@ -214,7 +214,7 @@ def run_feat2gs(opt, niter=2000):
|
|
| 214 |
except Exception as e:
|
| 215 |
raise gr.Error(f"Step 2 failed: {str(e)}")
|
| 216 |
|
| 217 |
-
@spaces.GPU(duration=
|
| 218 |
def run_render(opt, args, cam_traj='ellipse'):
|
| 219 |
if opt is None or args is None:
|
| 220 |
raise gr.Error("Please run Steps 1 and 2 first!")
|
|
|
|
| 59 |
return parser
|
| 60 |
|
| 61 |
|
| 62 |
+
@spaces.GPU(duration=300)
|
| 63 |
def run_dust3r(inputfiles, input_path=None):
|
| 64 |
|
| 65 |
if input_path is not None:
|
|
|
|
| 154 |
|
| 155 |
return outfile, feat_image_path, opt, None, None
|
| 156 |
|
| 157 |
+
@spaces.GPU(duration=300)
|
| 158 |
def run_feat2gs(opt, niter=2000):
|
| 159 |
|
| 160 |
if opt is None:
|
|
|
|
| 214 |
except Exception as e:
|
| 215 |
raise gr.Error(f"Step 2 failed: {str(e)}")
|
| 216 |
|
| 217 |
+
@spaces.GPU(duration=300)
|
| 218 |
def run_render(opt, args, cam_traj='ellipse'):
|
| 219 |
if opt is None or args is None:
|
| 220 |
raise gr.Error("Please run Steps 1 and 2 first!")
|