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

yyjim /segment-anything-everything:bc7e1029

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
mask_limit
integer
maximum number of masks to return. If None, all masks will be returned. NOTE: The masks are sorted by predicted_iou.
mask_only
boolean
False
If True, the output will only include mask.
points_per_side
integer
32
The number of points to be sampled along one side of the image. The total number of points is points_per_side**2. If None, point_grids must provide explicit point sampling.
pred_iou_thresh
number
0.88
A filtering threshold in [0,1], using the model's predicted mask quality.
stability_score_thresh
number
0.95
A filtering threshold in [0,1], using the stability of the mask under changes to the cutoff used to binarize the model's mask predictions.
stability_score_offset
number
1
The amount to shift the cutoff when calculated the stability score.
box_nms_thresh
number
0.7
The box IoU cutoff used by non-maximal suppression to filter duplicate masks.
crop_n_layers
integer
0
If >0, mask prediction will be run again on crops of the image. Sets the number of layers to run, where each layer has 2**i_layer number of image crops
crop_nms_thresh
number
0.7
The box IoU cutoff used by non-maximal suppression to filter duplicate masks between different crops.
crop_overlap_ratio
number
0.3413333333333333
Sets the degree to which crops overlap. In the first crop layer, crops will overlap by this fraction of the image length. Later layers with more crops scale down this overlap.
crop_n_points_downscale_factor
integer
1
The number of points-per-side sampled in layer n is scaled down by crop_n_points_downscale_factor**n.
min_mask_region_area
integer
0
If >0, postprocessing will be applied to remove disconnected regions and holes in masks with area smaller than min_mask_region_area.

Output schema

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

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array'}