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