faneggg commited on
Commit
6eb1ad0
·
verified ·
1 Parent(s): cfb8119

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -55,7 +55,7 @@ def get_dust3r_args_parser():
55
  return parser
56
 
57
 
58
- @spaces.GPU(duration=150)
59
  def run_dust3r(inputfiles, input_path=None):
60
 
61
  if input_path is not None:
@@ -150,7 +150,7 @@ def run_dust3r(inputfiles, input_path=None):
150
 
151
  return outfile, feat_image_path, opt, None, None
152
 
153
- @spaces.GPU(duration=150)
154
  def run_feat2gs(opt, niter=2000):
155
 
156
  if opt is None:
@@ -211,7 +211,6 @@ def run_feat2gs(opt, niter=2000):
211
  raise gr.Error(f"Step 2 failed: {str(e)}")
212
 
213
 
214
- @spaces.GPU(duration=150)
215
  def run_render(opt, args, cam_traj='ellipse'):
216
  if opt is None or args is None:
217
  raise gr.Error("Please run Steps 1 and 2 first!")
 
55
  return parser
56
 
57
 
58
+ @spaces.GPU(duration=50000000)
59
  def run_dust3r(inputfiles, input_path=None):
60
 
61
  if input_path is not None:
 
150
 
151
  return outfile, feat_image_path, opt, None, None
152
 
153
+
154
  def run_feat2gs(opt, niter=2000):
155
 
156
  if opt is None:
 
211
  raise gr.Error(f"Step 2 failed: {str(e)}")
212
 
213
 
 
214
  def run_render(opt, args, cam_traj='ellipse'):
215
  if opt is None or args is None:
216
  raise gr.Error("Please run Steps 1 and 2 first!")