Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,8 @@ standard retargeting tools (d). Input image © Olga Posukh.
|
|
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 |
|
@@ -139,7 +140,7 @@ def main():
|
|
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
|
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"),
|
|
|
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 (uncheck it if the input character
|
84 |
+
sketch does not have self-contacts).
|
85 |
</p>
|
86 |
'''
|
87 |
|
|
|
140 |
gr.Image(type="filepath", label="Image"),
|
141 |
gr.Checkbox(value=True, label="Bone lenghts"),
|
142 |
gr.Checkbox(value=True, label="Foreshortening"),
|
143 |
+
gr.Checkbox(value=True, label="Self-contacts", interactive=torch.cuda.is_available()),
|
144 |
gr.Checkbox(value=True, label="Pose naturalness"),
|
145 |
],
|
146 |
outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="SMPL 3D pose"),
|