lightweight-ai / seg_any

  • Public
  • 9 runs
  • A100 (80GB)

Run lightweight-ai/seg_any 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
input_image
string
Input image
use_sam_hq
boolean
False
Use sam_hq instead of SAM for prediction
show_visualisation
boolean
False
Output rounding box and masks on the image

Output schema

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

Schema
{
  "type": "object",
  "title": "ModelOutput",
  "required": [
    "tags"
  ],
  "properties": {
    "tags": {
      "type": "string",
      "title": "Tags"
    },
    "json_data": {
      "title": "Json Data"
    },
    "masked_img": {
      "type": "string",
      "title": "Masked Img",
      "format": "uri"
    },
    "rounding_box_img": {
      "type": "string",
      "title": "Rounding Box Img",
      "format": "uri"
    }
  }
}