KupynOrest commited on
Commit
4bc73d8
β€’
1 Parent(s): 0fed217
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,10 +22,10 @@ def detect_faces(image, method):
22
  iface = gr.Interface(
23
  fn=detect_faces,
24
  inputs=[
25
- gr.inputs.Image(type="numpy", label="Upload an Image"),
26
- gr.inputs.Radio(['Full', 'Head Boxes', 'Face Landmarks', 'Head Mesh', 'Head Pose'], label="Face Detection Method", default='Full')
27
  ],
28
- outputs=gr.outputs.Image(type="numpy", label="Image with Faces"),
29
  title="Demo of: VGGHeads: A Large-Scale Synthetic Dataset for 3D Human Heads",
30
  description="Upload an image and get all predictions at once! The model performs simultaneous heads detection and head meshes reconstruction from a single image in a single step. This demo showcases the capabilities of VGGHeads, a large-scale synthetic dataset designed to advance the field of 3D human head modeling. The model trained on fully synthetic data can accurately detect human heads and reconstruct their 3D meshes with high fidelity in real world. Users can choose from five visualization methods: 'Full', 'Head Boxes', 'Face Landmarks', 'Head Mesh', and 'Head Pose', demonstrating the model's versatility in predicting various aspects of head detection and reconstruction. Ideal for applications in virtual reality, gaming, and animation, VGGHeads aims to bridge the gap between 2D image inputs and 3D head outputs.",
31
  allow_flagging='never',
 
22
  iface = gr.Interface(
23
  fn=detect_faces,
24
  inputs=[
25
+ gr.Image(type="numpy", label="Upload an Image"),
26
+ gr.Radio(['Full', 'Head Boxes', 'Face Landmarks', 'Head Mesh', 'Head Pose'], label="Face Detection Method", default='Full')
27
  ],
28
+ outputs=gr.Image(type="numpy", label="Image with Faces"),
29
  title="Demo of: VGGHeads: A Large-Scale Synthetic Dataset for 3D Human Heads",
30
  description="Upload an image and get all predictions at once! The model performs simultaneous heads detection and head meshes reconstruction from a single image in a single step. This demo showcases the capabilities of VGGHeads, a large-scale synthetic dataset designed to advance the field of 3D human head modeling. The model trained on fully synthetic data can accurately detect human heads and reconstruct their 3D meshes with high fidelity in real world. Users can choose from five visualization methods: 'Full', 'Head Boxes', 'Face Landmarks', 'Head Mesh', and 'Head Pose', demonstrating the model's versatility in predicting various aspects of head detection and reconstruction. Ideal for applications in virtual reality, gaming, and animation, VGGHeads aims to bridge the gap between 2D image inputs and 3D head outputs.",
31
  allow_flagging='never',