kbrodt commited on
Commit
acdae7b
1 Parent(s): 95e9fee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, False, 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=False, 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[:5],
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
  )