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

leandroamaral /segmentanything:7dad80a3

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
model_name
string (enum)
FastSAM-x

Options:

FastSAM-x, FastSAM-s

choose a model
iou
number
0.7
iou threshold for filtering the annotations
text_prompt
string
use text prompt eg: "a black dog"
conf
number
0.25
object confidence threshold
retina
boolean
True
draw high-resolution segmentation masks
box_prompt
string
[0,0,0,0]
[x,y,w,h]
point_prompt
string
[[0,0]]
[[x1,y1],[x2,y2]]
point_label
string
[0]
[1,0] 0:background, 1:foreground
withContours
boolean
False
draw the edges of the masks
better_quality
boolean
False
better quality using morphologyEx

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