Segment Anything - Default

  • v1

sahil280114/segment-anything-template


Deploy on Banana for fast, affordable, and easy deployment of Segment Anything - Default. Get results fast with our user-friendly interface, unbeatable pricing and speed. Click the button above to deploy this model now!


Readme


INPUT

{
  "image": "Image as base64 string"
}

OUTPUT

{
  "masks": [
    {
      "segmentation": []
    },
    {
      "area": 9840
    },
    {
      "bbox": []
    },
    {
      "predicted_iou": 32
    },
    {
      "point_coords": ""
    },
    {
      "stability_score": ""
    },
    {
      "crop_box": ""
    }
  ]
}

CODE SNIPPETS


import banana_dev as banana

model_inputs = {
  "image": "Image as base64 string"
}

api_key = "YOUR_API_KEY"
model_key = "YOUR_MODEL_KEY"

# Run the model
out = banana.run(api_key, model_key, model_inputs)

logo