kylan02/face-looker

Generates HTML with a face that follows the cursor

Public
1.2K runs

Run kylan02/face-looker with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
Path to face image (512x512 recommended)
min_value
number
-15

Min: -15

Max: 15

Minimum value for pupil_x/y
max_value
number
15

Min: -15

Max: 15

Maximum value for pupil_x/y
step
number
3

Min: 0.1

Step size for grid sampling (smaller = more images)
size
integer
256

Min: 64

Max: 1024

Resize dimension (square) for outputs

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "grid",
    "zip_file",
    "video"
  ],
  "properties": {
    "grid": {
      "type": "string",
      "title": "Grid",
      "format": "uri"
    },
    "video": {
      "type": "string",
      "title": "Video",
      "format": "uri"
    },
    "zip_file": {
      "type": "string",
      "title": "Zip File",
      "format": "uri"
    }
  }
}
Example API response
View prediction
{'grid': 'https://replicate.delivery/xezq/7b0AdJlG8PacKVztqoFPtkyKotLAlHCM3ti2rvv2rVh20jZF/gaze_grid.webp',
 'video': 'https://replicate.delivery/xezq/7f7mybbhGrX4aimvpwSbKLfvml0fulrijztviIlVsYX1meYWB/gaze_circle.mp4',
 'zip_file': 'https://replicate.delivery/xezq/f6e9VYfHoGFnjITzvkaeyLb3iYCNpcLPmPnBB4l560eUb6xsC/face_looker.zip'}