Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -77,6 +77,11 @@ standard retargeting tools (d). Input image © Olga Posukh.
|
|
77 |
</td>
|
78 |
</tr>
|
79 |
<table>
|
|
|
|
|
|
|
|
|
|
|
80 |
'''
|
81 |
|
82 |
|
@@ -134,11 +139,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=True, label="Self-contacts (
|
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 |
)
|
|
|
77 |
</td>
|
78 |
</tr>
|
79 |
<table>
|
80 |
+
|
81 |
+
<p>
|
82 |
+
Note: it takes about 30 seconds to infer 3D pose on Hugginface Spaces without
|
83 |
+
self-contacts and 2.5 minutes with self-contacts.
|
84 |
+
</p>
|
85 |
'''
|
86 |
|
87 |
|
|
|
139 |
gr.Image(type="filepath", label="Image"),
|
140 |
gr.Checkbox(value=True, label="Bone lenghts"),
|
141 |
gr.Checkbox(value=True, label="Foreshortening"),
|
142 |
+
gr.Checkbox(value=True, label="Self-contacts (uncheck it if the input character sketch does not have self-contacts)", interactive=torch.cuda.is_available()),
|
143 |
gr.Checkbox(value=True, label="Pose naturalness"),
|
144 |
],
|
145 |
outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="SMPL 3D pose"),
|
146 |
+
examples=examples[:5] + examples[6:6 + 5],
|
147 |
title=TITLE,
|
148 |
description=DESCRIPTION,
|
149 |
)
|