Spaces:
Sleeping
Sleeping
Habeeb Okunade
commited on
Commit
Β·
7113b7f
1
Parent(s):
5aabef9
Adding a README file
Browse files
README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Beit-Retinal
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
license: mit
|
| 9 |
+
short_description: Training model for some retina dataset
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# RETFound MAE β Hugging Face Space (FastAPI): Train + Inference
|
| 13 |
+
|
| 14 |
+
This Space lets you upload a zipped ImageFolder dataset, fine-tune a classifier head on top of RETFound MAE, run predictions, and push the trained model to the Hub.
|
| 15 |
+
|
| 16 |
+
## Endpoints
|
| 17 |
+
- `POST /predict` β form-data file=`image.jpg`
|
| 18 |
+
|
| 19 |
+
## Env Vars
|
| 20 |
+
- `HF_BASE_MODEL_REPO` (e.g., `username/retfound-model`)
|
| 21 |
+
|
| 22 |
+
## Dataset format
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
zip-root/
|
| 26 |
+
train/
|
| 27 |
+
ClassA/*.jpg
|
| 28 |
+
ClassB/*.jpg
|
| 29 |
+
val/
|
| 30 |
+
ClassA/*.jpg
|
| 31 |
+
ClassB/*.jpg
|
| 32 |
+
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Notes
|
| 36 |
+
- GPU recommended. If CPU-only, reduce batch size.
|
| 37 |
+
- Validation accuracy is reported; best checkpoint saved to `checkpoints/`.
|