
juergengunz/mask-outfit
Public
22.4K
runs
Run juergengunz/mask-outfit 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
|
Input image to generate mask for
|
|
mask_type |
None
|
upper
|
Type of mask to generate
|
invert |
boolean
|
False
|
Whether to invert the mask (0 becomes 255, 255 becomes 0)
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image to generate mask for"
},
"invert": {
"type": "boolean",
"title": "Invert",
"default": false,
"x-order": 2,
"description": "Whether to invert the mask (0 becomes 255, 255 becomes 0)"
},
"mask_type": {
"enum": [
"upper",
"lower",
"overall",
"inner",
"outer"
],
"type": "string",
"title": "mask_type",
"description": "Type of mask to generate",
"default": "upper",
"x-order": 1
}
}
}
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"
}