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

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"
}