Habeeb Okunade commited on
Commit
7113b7f
Β·
1 Parent(s): 5aabef9

Adding a README file

Browse files
Files changed (1) hide show
  1. README.md +37 -0
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/`.