File size: 916 Bytes
a849fd4
0b86477
 
 
 
a849fd4
c8d0b5d
a849fd4
 
0b86477
a849fd4
 
0b86477
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c8d0b5d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
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