Yuliang commited on
Commit
d6044cd
·
1 Parent(s): 12822cb

fix GPU quota

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +3 -3
  3. requirements.txt +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ✨
4
  colorFrom: yellow
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 4.20.1
8
  python_version: 3.10.13
9
  app_file: app.py
10
  pinned: false
 
4
  colorFrom: yellow
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 5.12.0
8
  python_version: 3.10.13
9
  app_file: app.py
10
  pinned: false
app.py CHANGED
@@ -59,7 +59,7 @@ def get_dust3r_args_parser():
59
  return parser
60
 
61
 
62
- @spaces.GPU()
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()
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()
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=150)
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=150)
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=150)
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!")
requirements.txt CHANGED
@@ -1,9 +1,9 @@
1
  torch==2.2.0
2
- numpy
3
  torchvision
4
  roma
5
  evo
6
- gradio>=4,<5
7
  matplotlib
8
  tqdm
9
  opencv-python
 
1
  torch==2.2.0
2
+ numpy<2
3
  torchvision
4
  roma
5
  evo
6
+ gradio==5.12.0
7
  matplotlib
8
  tqdm
9
  opencv-python