leandroamaral / segmentanything

Segment Anything MASK

  • Public
  • 1.3K runs
  • T4
Iterate in playground

Input

image
*file

Input image

string

choose a model

Default: "FastSAM-x"

number

iou threshold for filtering the annotations

Default: 0.7

string
Shift + Return to add a new line

use text prompt eg: "a black dog"

number

object confidence threshold

Default: 0.25

boolean

draw high-resolution segmentation masks

Default: true

string
Shift + Return to add a new line

[x,y,w,h]

Default: "[0,0,0,0]"

string
Shift + Return to add a new line

[[x1,y1],[x2,y2]]

Default: "[[0,0]]"

string
Shift + Return to add a new line

[1,0] 0:background, 1:foreground

Default: "[0]"

boolean

draw the edges of the masks

Default: false

boolean

better quality using morphologyEx

Default: false

Output

output
Generated in

This output was created using a different version of the model, leandroamaral/segmentanything:8a1fbd7f.

Run time and cost

This model costs approximately $0.00022 to run on Replicate, or 4545 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia T4 GPU hardware. Predictions typically complete within 1 seconds.

Readme

This model doesn't have a readme.