Spaces:
Running
on
Zero
Running
on
Zero
fix jpg
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def process_image(image_path):
|
|
82 |
return image
|
83 |
|
84 |
# process generation
|
85 |
-
@spaces.GPU(duration=
|
86 |
def process_3d(input_image, num_steps=50, cfg_scale=7, grid_res=384, seed=42, simplify_mesh=False, target_num_faces=100000):
|
87 |
|
88 |
# seed
|
@@ -164,7 +164,7 @@ with block:
|
|
164 |
with gr.Column(scale=1):
|
165 |
with gr.Row():
|
166 |
# input image
|
167 |
-
input_image = gr.Image(label="Input Image", type="filepath"
|
168 |
seg_image = gr.Image(label="Segmentation Result", type="numpy", interactive=False, image_mode="RGBA")
|
169 |
with gr.Accordion("Settings", open=True):
|
170 |
# inference steps
|
|
|
82 |
return image
|
83 |
|
84 |
# process generation
|
85 |
+
@spaces.GPU(duration=90)
|
86 |
def process_3d(input_image, num_steps=50, cfg_scale=7, grid_res=384, seed=42, simplify_mesh=False, target_num_faces=100000):
|
87 |
|
88 |
# seed
|
|
|
164 |
with gr.Column(scale=1):
|
165 |
with gr.Row():
|
166 |
# input image
|
167 |
+
input_image = gr.Image(label="Input Image", type="filepath") # use file_path and load manually
|
168 |
seg_image = gr.Image(label="Segmentation Result", type="numpy", interactive=False, image_mode="RGBA")
|
169 |
with gr.Accordion("Settings", open=True):
|
170 |
# inference steps
|