Spaces:
Running
on
Zero
Running
on
Zero
fix: planes_path is undefined
Browse files
app.py
CHANGED
@@ -231,11 +231,11 @@ def step_1_generate_planes(image):
|
|
231 |
return planes_path.shape
|
232 |
|
233 |
def step_2_generate_obj(image):
|
234 |
-
|
235 |
return planes_path.shape, mesh_path, mesh_path
|
236 |
|
237 |
def step_3_generate_video(image):
|
238 |
-
|
239 |
return planes_path.shape, video_path
|
240 |
|
241 |
# 从 assets 文件夹中设置示例文件,并限制最多读取 10 个文件
|
|
|
231 |
return planes_path.shape
|
232 |
|
233 |
def step_2_generate_obj(image):
|
234 |
+
planes_path, mesh_path = generate_mesh(image, export_mesh=True)
|
235 |
return planes_path.shape, mesh_path, mesh_path
|
236 |
|
237 |
def step_3_generate_video(image):
|
238 |
+
planes_path, video_path = generate_mesh(image, export_video=True)
|
239 |
return planes_path.shape, video_path
|
240 |
|
241 |
# 从 assets 文件夹中设置示例文件,并限制最多读取 10 个文件
|