You're looking at a specific version of this model. Jump to the model overview.

superhighfives /vitmatte-trimap:db47c8e7

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.

Output schema

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

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}