Spaces:
Runtime error
Runtime error
kyleleey
commited on
Commit
·
0399b2e
1
Parent(s):
39c1a63
update tags
Browse files- .gitignore +2 -1
- app.py +8 -6
.gitignore
CHANGED
|
@@ -9,7 +9,8 @@ neural_renderer
|
|
| 9 |
*.zip
|
| 10 |
unchanged/
|
| 11 |
|
| 12 |
-
|
|
|
|
| 13 |
.vscode
|
| 14 |
.vscode/
|
| 15 |
|
|
|
|
| 9 |
*.zip
|
| 10 |
unchanged/
|
| 11 |
|
| 12 |
+
*.glb
|
| 13 |
+
*.obj
|
| 14 |
.vscode
|
| 15 |
.vscode/
|
| 16 |
|
app.py
CHANGED
|
@@ -644,14 +644,16 @@ def run_demo():
|
|
| 644 |
# crop_size = 192
|
| 645 |
run_btn = gr.Button('Reconstruct', variant='primary', interactive=True)
|
| 646 |
with gr.Row():
|
| 647 |
-
view_1 = gr.Image(interactive=False, height=256, show_label=
|
| 648 |
-
view_2 = gr.Image(interactive=False, height=256, show_label=
|
| 649 |
with gr.Row():
|
| 650 |
-
shape_1 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Reconstructed
|
| 651 |
-
|
|
|
|
| 652 |
with gr.Row():
|
| 653 |
-
shape_2 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Bank Base Shape Model")
|
| 654 |
-
|
|
|
|
| 655 |
|
| 656 |
run_btn.click(fn=partial(preprocess, predictor),
|
| 657 |
inputs=[input_image, input_processing],
|
|
|
|
| 644 |
# crop_size = 192
|
| 645 |
run_btn = gr.Button('Reconstruct', variant='primary', interactive=True)
|
| 646 |
with gr.Row():
|
| 647 |
+
view_1 = gr.Image(label="Input View Reconstruction", interactive=False, height=256, show_label=True)
|
| 648 |
+
view_2 = gr.Image(label="Input View Reconstruction with Skeleton", interactive=False, height=256, show_label=True)
|
| 649 |
with gr.Row():
|
| 650 |
+
shape_1 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Reconstructed Shape")
|
| 651 |
+
shape_2 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Reconstructed Base Shape")
|
| 652 |
+
#shape_1_download = gr.File(label="Download Full Reconstructed Model")
|
| 653 |
with gr.Row():
|
| 654 |
+
# shape_2 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Bank Base Shape Model")
|
| 655 |
+
shape_1_download = gr.File(label="Download Reconstructed Shape")
|
| 656 |
+
shape_2_download = gr.File(label="Download Reconstructed Base Shape")
|
| 657 |
|
| 658 |
run_btn.click(fn=partial(preprocess, predictor),
|
| 659 |
inputs=[input_image, input_processing],
|