superhighfives/vitmatte-trimap
Public
39
runs
Run superhighfives/vitmatte-trimap 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
|
RGB image to matte
|
|
| trimap |
string
|
Grayscale trimap: 0=background, 128=unknown, 255=foreground
|
|
| max_size |
integer
|
1280
Min: 512 Max: 2048 |
Longest side the model runs at (alpha returned at this size; the caller resamples). Lower = faster / less VRAM.
|
{
"type": "object",
"title": "Input",
"required": [
"image",
"trimap"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "RGB image to matte"
},
"trimap": {
"type": "string",
"title": "Trimap",
"format": "uri",
"x-order": 1,
"description": "Grayscale trimap: 0=background, 128=unknown, 255=foreground"
},
"max_size": {
"type": "integer",
"title": "Max Size",
"default": 1280,
"maximum": 2048,
"minimum": 512,
"x-order": 2,
"description": "Longest side the model runs at (alpha returned at this size; the caller resamples). Lower = faster / less VRAM."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}