Spaces:
Runtime error
Runtime error
Stanislaw Szymanowicz
commited on
Commit
·
b80d994
1
Parent(s):
56cf08e
Change file naming
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def main():
|
|
| 74 |
image = resize_to_128(image)
|
| 75 |
return image
|
| 76 |
|
| 77 |
-
ply_out_path =
|
| 78 |
|
| 79 |
def reconstruct_and_export(image):
|
| 80 |
"""
|
|
@@ -114,9 +114,9 @@ def main():
|
|
| 114 |
loop_out_path = os.path.join(os.path.dirname(ply_out_path), "loop.mp4")
|
| 115 |
imageio.mimsave(loop_out_path, loop_renders, fps=25)"""
|
| 116 |
# export reconstruction to ply
|
| 117 |
-
export_to_obj(reconstruction_unactivated, ply_out_path
|
| 118 |
|
| 119 |
-
return ply_out_path
|
| 120 |
|
| 121 |
with gr.Blocks() as demo:
|
| 122 |
gr.Markdown(
|
|
|
|
| 74 |
image = resize_to_128(image)
|
| 75 |
return image
|
| 76 |
|
| 77 |
+
ply_out_path = f'./mesh.ply'
|
| 78 |
|
| 79 |
def reconstruct_and_export(image):
|
| 80 |
"""
|
|
|
|
| 114 |
loop_out_path = os.path.join(os.path.dirname(ply_out_path), "loop.mp4")
|
| 115 |
imageio.mimsave(loop_out_path, loop_renders, fps=25)"""
|
| 116 |
# export reconstruction to ply
|
| 117 |
+
export_to_obj(reconstruction_unactivated, ply_out_path)
|
| 118 |
|
| 119 |
+
return ply_out_path
|
| 120 |
|
| 121 |
with gr.Blocks() as demo:
|
| 122 |
gr.Markdown(
|