Spaces:
Running
on
A100
Running
on
A100
Commit
•
d1e8936
1
Parent(s):
2e13faa
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ def preprocess(input_image, do_remove_background):
|
|
147 |
return input_image
|
148 |
|
149 |
|
150 |
-
|
151 |
def generate_mvs(input_image, sample_steps, sample_seed):
|
152 |
|
153 |
seed_everything(sample_seed)
|
@@ -167,7 +167,7 @@ def generate_mvs(input_image, sample_steps, sample_seed):
|
|
167 |
return z123_image, show_image
|
168 |
|
169 |
|
170 |
-
|
171 |
def make3d(images):
|
172 |
|
173 |
global model
|
@@ -333,5 +333,4 @@ with gr.Blocks() as demo:
|
|
333 |
inputs=[mv_images],
|
334 |
outputs=[output_model_obj, output_model_glb]
|
335 |
)
|
336 |
-
demo.queue()
|
337 |
demo.launch()
|
|
|
147 |
return input_image
|
148 |
|
149 |
|
150 |
+
@spaces.GPU
|
151 |
def generate_mvs(input_image, sample_steps, sample_seed):
|
152 |
|
153 |
seed_everything(sample_seed)
|
|
|
167 |
return z123_image, show_image
|
168 |
|
169 |
|
170 |
+
@spaces.GPU
|
171 |
def make3d(images):
|
172 |
|
173 |
global model
|
|
|
333 |
inputs=[mv_images],
|
334 |
outputs=[output_model_obj, output_model_glb]
|
335 |
)
|
|
|
336 |
demo.launch()
|