vetkastar
/
rem-bg
- Public
- 66 runs
Run vetkastar/rem-bg 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 file
|
|
object_type |
string
(enum)
|
hairs-like
Options: hairs-like, object |
Type of object to process
|
seg_mask_size |
integer
(enum)
|
640
Options: 320, 640 |
Size of segmentation mask (640 for Tracer B7, 320 for U2Net)
|
trimap_dilation |
integer
|
30
Min: 1 Max: 100 |
Size of the offset radius from object mask in pixels
|
trimap_erosion |
integer
|
5
Min: 1 Max: 20 |
Number of erosion iterations for object mask
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image file"
},
"object_type": {
"enum": [
"hairs-like",
"object"
],
"type": "string",
"title": "object_type",
"description": "Type of object to process",
"default": "hairs-like",
"x-order": 1
},
"seg_mask_size": {
"enum": [
320,
640
],
"type": "integer",
"title": "seg_mask_size",
"description": "Size of segmentation mask (640 for Tracer B7, 320 for U2Net)",
"default": 640,
"x-order": 2
},
"trimap_erosion": {
"type": "integer",
"title": "Trimap Erosion",
"default": 5,
"maximum": 20,
"minimum": 1,
"x-order": 4,
"description": "Number of erosion iterations for object mask"
},
"trimap_dilation": {
"type": "integer",
"title": "Trimap Dilation",
"default": 30,
"maximum": 100,
"minimum": 1,
"x-order": 3,
"description": "Size of the offset radius from object mask in pixels"
}
}
}
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"
}