kylan02/face-looker
Generates HTML with a face that follows the cursor
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
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"size": {
"type": "integer",
"title": "Size",
"default": 256,
"maximum": 1024,
"minimum": 64,
"x-order": 4,
"description": "Resize dimension (square) for outputs"
},
"step": {
"type": "number",
"title": "Step",
"default": 3,
"minimum": 0.1,
"x-order": 3,
"description": "Step size for grid sampling (smaller = more images)"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Path to face image (512x512 recommended)"
},
"max_value": {
"type": "number",
"title": "Max Value",
"default": 15,
"maximum": 15,
"minimum": -15,
"x-order": 2,
"description": "Maximum value for pupil_x/y"
},
"min_value": {
"type": "number",
"title": "Min Value",
"default": -15,
"maximum": 15,
"minimum": -15,
"x-order": 1,
"description": "Minimum value for pupil_x/y"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"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"
}
}
}
{'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'}