wangzhonghua commited on
Commit ·
08d2938
1
Parent(s): 5b09132
download update
Browse files- README.md +73 -50
- config.json +8 -0
README.md
CHANGED
|
@@ -1,50 +1,73 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
tags:
|
| 4 |
-
- medical-imaging
|
| 5 |
-
- segmentation
|
| 6 |
-
- retinal
|
| 7 |
-
- pytorch
|
| 8 |
-
library_name: pytorch
|
| 9 |
-
inference: true
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
# RetSAM
|
| 13 |
-
|
| 14 |
-
<p align="left">
|
| 15 |
-
<a href="https://arxiv.org/abs/2602.07012"><img src="https://img.shields.io/badge/arXiv-PDF-red" alt="arXiv"></a>
|
| 16 |
-
<a href="https://wzhjerry.github.io/RetSAM/"><img src="https://img.shields.io/badge/Project-Page-blue" alt="Project Page"></a>
|
| 17 |
-
<a href="https://huggingface.co/JerryWzh/RetSAM_public"><img src="https://img.shields.io/badge/Model-RetSAM-green" alt="Model"></a>
|
| 18 |
-
</p>
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
Overview
|
| 22 |
-
--------
|
| 23 |
-
Official repository for "A General Model for Retinal Segmentation and Quantification".
|
| 24 |
-
|
| 25 |
-
> **Note**: Publicly released models are trained on public datasets only and may differ from the paper-reported results.
|
| 26 |
-
|
| 27 |
-
Checkpoint
|
| 28 |
-
----------
|
| 29 |
-
- `--out_channels`: `"(2,3,2,4,6)"`.
|
| 30 |
-
- `--patch_size`: `4`.
|
| 31 |
-
- `--window_size`: `10`.
|
| 32 |
-
- `--depths`: `"(2, 2, 18, 2)"`.
|
| 33 |
-
- `--num_heads`: `"(4, 8, 16, 32)"`.
|
| 34 |
-
- `--feature_size`: `128`.
|
| 35 |
-
- `--size`: `640`.
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
--------
|
| 39 |
-
``
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- medical-imaging
|
| 5 |
+
- segmentation
|
| 6 |
+
- retinal
|
| 7 |
+
- pytorch
|
| 8 |
+
library_name: pytorch
|
| 9 |
+
inference: true
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# RetSAM
|
| 13 |
+
|
| 14 |
+
<p align="left">
|
| 15 |
+
<a href="https://arxiv.org/abs/2602.07012"><img src="https://img.shields.io/badge/arXiv-PDF-red" alt="arXiv"></a>
|
| 16 |
+
<a href="https://wzhjerry.github.io/RetSAM/"><img src="https://img.shields.io/badge/Project-Page-blue" alt="Project Page"></a>
|
| 17 |
+
<a href="https://huggingface.co/JerryWzh/RetSAM_public"><img src="https://img.shields.io/badge/Model-RetSAM-green" alt="Model"></a>
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
Overview
|
| 22 |
+
--------
|
| 23 |
+
Official repository for "A General Model for Retinal Segmentation and Quantification".
|
| 24 |
+
|
| 25 |
+
> **Note**: Publicly released models are trained on public datasets only and may differ from the paper-reported results.
|
| 26 |
+
|
| 27 |
+
Checkpoint
|
| 28 |
+
----------
|
| 29 |
+
- `--out_channels`: `"(2,3,2,4,6)"`.
|
| 30 |
+
- `--patch_size`: `4`.
|
| 31 |
+
- `--window_size`: `10`.
|
| 32 |
+
- `--depths`: `"(2, 2, 18, 2)"`.
|
| 33 |
+
- `--num_heads`: `"(4, 8, 16, 32)"`.
|
| 34 |
+
- `--feature_size`: `128`.
|
| 35 |
+
- `--size`: `640`.
|
| 36 |
+
|
| 37 |
+
Download from Hugging Face
|
| 38 |
+
--------------------------
|
| 39 |
+
Install `huggingface_hub`:
|
| 40 |
+
```bash
|
| 41 |
+
pip install -U huggingface_hub
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Download the checkpoint with Python:
|
| 45 |
+
```python
|
| 46 |
+
from huggingface_hub import hf_hub_download
|
| 47 |
+
|
| 48 |
+
ckpt_path = hf_hub_download(
|
| 49 |
+
repo_id="JerryWzh/RetSAM_public",
|
| 50 |
+
filename="retsam_v1_for_public.ckpt",
|
| 51 |
+
)
|
| 52 |
+
print(ckpt_path)
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Or download with CLI:
|
| 56 |
+
```bash
|
| 57 |
+
hf download JerryWzh/RetSAM_public retsam_v1_for_public.ckpt
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
Citation
|
| 61 |
+
--------
|
| 62 |
+
```bibtex
|
| 63 |
+
@article{wang2026general,
|
| 64 |
+
title={A General Model for Retinal Segmentation and Quantification},
|
| 65 |
+
author={Wang, Zhonghua and Ju, Lie and Li, Sijia and Feng, Wei and Zhou, Sijin and Hu, Ming and Xiong, Jianhao and Tang, Xiaoying and Peng, Yifan and Lin, Mingquan and others},
|
| 66 |
+
journal={arXiv preprint arXiv:2602.07012},
|
| 67 |
+
year={2026}
|
| 68 |
+
}
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
Contact
|
| 72 |
+
-------
|
| 73 |
+
For questions or access to full RetSAM models, please contact me at: zhonghua.wang@monash.edu
|
config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "retsam",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"RetSAM"
|
| 5 |
+
],
|
| 6 |
+
"framework": "pytorch",
|
| 7 |
+
"checkpoint_file": "retsam_v1_for_public.ckpt"
|
| 8 |
+
}
|