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

lucataco /segment-anything-2:be7cbde9

Input

image
*file

Input image

integer

maximum number of masks to return. If -1 or None, all masks will be returned. NOTE: The masks are sorted by predicted_iou.

Default: -1

integer

The number of points to be sampled along one side of the image.

Default: 64

integer

Sets the number of points run simultaneously by the model

Default: 128

number

A filtering threshold in [0,1], using the model's predicted mask quality.

Default: 0.7

number

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.

Default: 0.92

number

The amount to shift the cutoff when calculated the stability score.

Default: 0.7

integer

If >0, mask prediction will be run again on crops of the image

Default: 1

number

The box IoU cutoff used by non-maximal suppression to filter duplicate masks.

Default: 0.7

integer

The number of points-per-side sampled in layer n is scaled down by crop_n_points_downscale_factor**n.

Default: 2

number

If >0, postprocessing will be applied to remove disconnected regions and holes in masks with area smaller than min_mask_region_area.

Default: 25

boolean

Whether to add a one step refinement using previous mask predictions.

Default: true

boolean

Whether to output multimask at each point of the grid.

Default: false

Output

outputoutput
Generated in