Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +3 -2
gradio_app.py
CHANGED
@@ -228,6 +228,7 @@ def image2mesh(view_front: np.ndarray,
|
|
228 |
target_face_count = 2000
|
229 |
command = f"{proj_dir}/apps/third_party/InstantMeshes {filepath} -f {target_face_count} -o {remeshed_filepath}"
|
230 |
os.system(command)
|
|
|
231 |
filepath = remeshed_filepath
|
232 |
# filepath = filepath.replace('.obj', '_remeshed.obj')
|
233 |
|
@@ -356,8 +357,8 @@ if __name__=="__main__":
|
|
356 |
camera_position=(90.0, 90.0, 3.5),
|
357 |
interactive=False,
|
358 |
)
|
359 |
-
with gr.Row():
|
360 |
-
|
361 |
|
362 |
with gr.Row():
|
363 |
view_front = gr.Image(label="Front", interactive=True, show_label=True)
|
|
|
228 |
target_face_count = 2000
|
229 |
command = f"{proj_dir}/apps/third_party/InstantMeshes {filepath} -f {target_face_count} -o {remeshed_filepath}"
|
230 |
os.system(command)
|
231 |
+
del filepath
|
232 |
filepath = remeshed_filepath
|
233 |
# filepath = filepath.replace('.obj', '_remeshed.obj')
|
234 |
|
|
|
357 |
camera_position=(90.0, 90.0, 3.5),
|
358 |
interactive=False,
|
359 |
)
|
360 |
+
# with gr.Row():
|
361 |
+
# gr.Markdown('''*please note that the model is fliped due to the gradio viewer, please download the obj file and you will get the correct orientation.''')
|
362 |
|
363 |
with gr.Row():
|
364 |
view_front = gr.Image(label="Front", interactive=True, show_label=True)
|