Spaces:
Running on Zero
Running on Zero
Rawal Khirodkar commited on
Commit ·
7ca9191
1
Parent(s): 397e140
Pose: drop ImageSlider, use plain Image (skeleton already overlays input)
Browse files
app.py
CHANGED
|
@@ -211,8 +211,7 @@ def predict(image: Image.Image, size: str, kpt_thr: float):
|
|
| 211 |
json.dump({"instances": instances}, f)
|
| 212 |
json_path = f.name
|
| 213 |
|
| 214 |
-
|
| 215 |
-
return (image_pil, vis_pil), json_path
|
| 216 |
|
| 217 |
|
| 218 |
# -----------------------------------------------------------------------------
|
|
@@ -280,13 +279,7 @@ with gr.Blocks(title="Sapiens2 Pose", theme=gr.themes.Soft(), css=CUSTOM_CSS) as
|
|
| 280 |
|
| 281 |
with gr.Row(equal_height=True):
|
| 282 |
inp = gr.Image(label="Input", type="pil", height=640)
|
| 283 |
-
out_img = gr.
|
| 284 |
-
label="Input ↔ Pose",
|
| 285 |
-
type="pil",
|
| 286 |
-
height=640,
|
| 287 |
-
max_height=640,
|
| 288 |
-
slider_position=50,
|
| 289 |
-
)
|
| 290 |
|
| 291 |
with gr.Row():
|
| 292 |
size = gr.Radio(
|
|
|
|
| 211 |
json.dump({"instances": instances}, f)
|
| 212 |
json_path = f.name
|
| 213 |
|
| 214 |
+
return vis_pil, json_path
|
|
|
|
| 215 |
|
| 216 |
|
| 217 |
# -----------------------------------------------------------------------------
|
|
|
|
| 279 |
|
| 280 |
with gr.Row(equal_height=True):
|
| 281 |
inp = gr.Image(label="Input", type="pil", height=640)
|
| 282 |
+
out_img = gr.Image(label="Pose", type="pil", height=640)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
|
| 284 |
with gr.Row():
|
| 285 |
size = gr.Radio(
|