Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def main():
|
|
| 126 |
|
| 127 |
examples = []
|
| 128 |
for img_path in Path("./data/images").glob("*"):
|
| 129 |
-
examples.append([str(img_path), True, True,
|
| 130 |
|
| 131 |
demo = gr.Interface(
|
| 132 |
fn=pose,
|
|
@@ -134,11 +134,11 @@ def main():
|
|
| 134 |
gr.Image(type="filepath", label="Image"),
|
| 135 |
gr.Checkbox(value=True, label="Bone lenghts"),
|
| 136 |
gr.Checkbox(value=True, label="Foreshortening"),
|
| 137 |
-
gr.Checkbox(value=
|
| 138 |
gr.Checkbox(value=True, label="Pose naturalness"),
|
| 139 |
],
|
| 140 |
outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="SMPL 3D pose"),
|
| 141 |
-
examples=examples[:
|
| 142 |
title=TITLE,
|
| 143 |
description=DESCRIPTION,
|
| 144 |
)
|
|
|
|
| 126 |
|
| 127 |
examples = []
|
| 128 |
for img_path in Path("./data/images").glob("*"):
|
| 129 |
+
examples.append([str(img_path), True, True, True, True])
|
| 130 |
|
| 131 |
demo = gr.Interface(
|
| 132 |
fn=pose,
|
|
|
|
| 134 |
gr.Image(type="filepath", label="Image"),
|
| 135 |
gr.Checkbox(value=True, label="Bone lenghts"),
|
| 136 |
gr.Checkbox(value=True, label="Foreshortening"),
|
| 137 |
+
gr.Checkbox(value=True, label="Self-contacts (available with cuda)", interactive=torch.cuda.is_available()),
|
| 138 |
gr.Checkbox(value=True, label="Pose naturalness"),
|
| 139 |
],
|
| 140 |
outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="SMPL 3D pose"),
|
| 141 |
+
examples=examples[:10],
|
| 142 |
title=TITLE,
|
| 143 |
description=DESCRIPTION,
|
| 144 |
)
|