CoolFace
Apppublic

Dense-Captioning/medsam-inference

sourceHugging Faceapache-2.0updated 9mo agoView on Hugging Face
0likes
App README

MedSAM Inference API

Point-based medical image segmentation using Fine-Tuned MedSAM.

Features

  • ✅ Point-based segmentation with coordinates
  • ✅ Multiple mask outputs
  • ✅ Foreground/background point labels
  • ✅ RESTful API interface
  • ✅ Interactive UI for testing

API Usage

Endpoint

POST https://YOUR_USERNAME-medsam-inference.hf.space/api/predict

Input Format

json
{
  "data": [
    "data:image/jpeg;base64,<BASE64_IMAGE>",
    "{\"coords\": [[x, y]], \"labels\": [1], \"multimask_output\": true}"
  ]
}

Example

See the examples/ folder for Python usage examples.

Model

This Space uses the Fine-Tuned MedSAM model from: https://huggingface.co/Aniketg6/Fine-Tuned-MedSAM

License

Apache 2.0