Spaces:
Sleeping
Sleeping
| title: MedSAM Inference API | |
| emoji: π₯ | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: gradio | |
| sdk_version: 6.0.0 | |
| app_file: app.py | |
| pinned: false | |
| license: apache-2.0 | |
| # 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 |