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

varad-13 /sam-3:f622edf0

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
Image to segment
prompt
string
Concept to find — a short noun phrase, e.g. 'logo', 'person', 'red car'. Every matching instance is returned.
threshold
number
0.5

Max: 1

Min confidence score to keep a detection
mask_threshold
number
0.5

Max: 1

Probability cutoff for binarising each mask
return_masks
boolean
True
Include the base64 PNG segment in each detection

Output schema

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

Schema
{'properties': {'count': {'title': 'Count', 'type': 'integer'},
                'detections': {'items': {'properties': {'area': {'title': 'Area',
                                                                 'type': 'integer'},
                                                        'box': {'items': {'type': 'number'},
                                                                'title': 'Box',
                                                                'type': 'array'},
                                                        'mask': {'title': 'Mask',
                                                                 'type': 'string'},
                                                        'rotated_box': {'properties': {'angle': {'title': 'Angle',
                                                                                                 'type': 'number'},
                                                                                       'center': {'items': {'type': 'number'},
                                                                                                  'title': 'Center',
                                                                                                  'type': 'array'},
                                                                                       'points': {'items': {'items': {'type': 'number'},
                                                                                                            'type': 'array'},
                                                                                                  'title': 'Points',
                                                                                                  'type': 'array'},
                                                                                       'size': {'items': {'type': 'number'},
                                                                                                'title': 'Size',
                                                                                                'type': 'array'}},
                                                                        'required': ['center',
                                                                                     'size',
                                                                                     'angle',
                                                                                     'points'],
                                                                        'title': 'RotatedBox',
                                                                        'type': 'object'},
                                                        'score': {'title': 'Score',
                                                                  'type': 'number'}},
                                         'required': ['score',
                                                      'box',
                                                      'rotated_box',
                                                      'area',
                                                      'mask'],
                                         'title': 'Detection',
                                         'type': 'object'},
                               'title': 'Detections',
                               'type': 'array'}},
 'required': ['count', 'detections'],
 'title': 'Output',
 'type': 'object'}