Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files- hg_app_bak.py +3 -3
hg_app_bak.py
CHANGED
@@ -154,7 +154,7 @@ def _gen_shape(
|
|
154 |
time_meta['image_to_textured_3d'] = {'total': time.time() - start_time}
|
155 |
time_meta['total'] = time.time() - start_time_0
|
156 |
stats['time'] = time_meta
|
157 |
-
return mesh, save_folder
|
158 |
|
159 |
@spaces.GPU(duration=80)
|
160 |
def generation_all(
|
@@ -166,7 +166,7 @@ def generation_all(
|
|
166 |
octree_resolution=256,
|
167 |
check_box_rembg=False
|
168 |
):
|
169 |
-
mesh, save_folder = _gen_shape(
|
170 |
caption,
|
171 |
image,
|
172 |
steps=steps,
|
@@ -201,7 +201,7 @@ def shape_generation(
|
|
201 |
octree_resolution=256,
|
202 |
check_box_rembg=False,
|
203 |
):
|
204 |
-
mesh, save_folder = _gen_shape(
|
205 |
caption,
|
206 |
image,
|
207 |
steps=steps,
|
|
|
154 |
time_meta['image_to_textured_3d'] = {'total': time.time() - start_time}
|
155 |
time_meta['total'] = time.time() - start_time_0
|
156 |
stats['time'] = time_meta
|
157 |
+
return mesh, save_folder, image
|
158 |
|
159 |
@spaces.GPU(duration=80)
|
160 |
def generation_all(
|
|
|
166 |
octree_resolution=256,
|
167 |
check_box_rembg=False
|
168 |
):
|
169 |
+
mesh, save_folder, image = _gen_shape(
|
170 |
caption,
|
171 |
image,
|
172 |
steps=steps,
|
|
|
201 |
octree_resolution=256,
|
202 |
check_box_rembg=False,
|
203 |
):
|
204 |
+
mesh, save_folder, image = _gen_shape(
|
205 |
caption,
|
206 |
image,
|
207 |
steps=steps,
|