Spaces:
Running on Zero
Running on Zero
Rawal Khirodkar commited on
Commit ·
c1ae985
1
Parent(s): 056d8b0
Pointmap: depth heatmap stacked below 3D mesh (right column), same height as input
Browse files
app.py
CHANGED
|
@@ -395,18 +395,18 @@ HEADER_HTML = """
|
|
| 395 |
with gr.Blocks(title="Sapiens2 Pointmap", theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
|
| 396 |
gr.HTML(HEADER_HTML)
|
| 397 |
|
| 398 |
-
with gr.Row(
|
| 399 |
inp = gr.Image(label="Input", type="pil", height=640, scale=2)
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
|
| 411 |
with gr.Row():
|
| 412 |
size = gr.Radio(
|
|
|
|
| 395 |
with gr.Blocks(title="Sapiens2 Pointmap", theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
|
| 396 |
gr.HTML(HEADER_HTML)
|
| 397 |
|
| 398 |
+
with gr.Row():
|
| 399 |
inp = gr.Image(label="Input", type="pil", height=640, scale=2)
|
| 400 |
+
with gr.Column(scale=3):
|
| 401 |
+
out_glb = gr.Model3D(
|
| 402 |
+
label="3D mesh · drag to orbit · scroll to zoom · shift+drag to pan",
|
| 403 |
+
height=640,
|
| 404 |
+
clear_color=[0.10, 0.11, 0.14, 1.0],
|
| 405 |
+
camera_position=(35, 70, 4.0),
|
| 406 |
+
zoom_speed=0.7,
|
| 407 |
+
pan_speed=0.5,
|
| 408 |
+
)
|
| 409 |
+
out_depth = gr.Image(label="Depth (Z)", type="pil", height=640)
|
| 410 |
|
| 411 |
with gr.Row():
|
| 412 |
size = gr.Radio(
|