thelets commited on
Commit
5e12b1a
·
verified ·
1 Parent(s): 95b720b

Update README.md

Browse files

![Train_Dice](https://cdn-uploads.huggingface.co/production/uploads/6967bc554f6963a866d40495/0BxDZ-Quxtef-v0ihVBA2.png)

![Val_Dice](https://cdn-uploads.huggingface.co/production/uploads/6967bc554f6963a866d40495/ysZLpgPeQVWgXo4vIafBu.png)

![Boundary_Loss](https://cdn-uploads.huggingface.co/production/uploads/6967bc554f6963a866d40495/GmQE9OnjdVyAV3MwS3hHH.png)

![Qualitative result](https://cdn-uploads.huggingface.co/production/uploads/6967bc554f6963a866d40495/m6rAelYl1mB66vZqk07z7.jpeg)

Files changed (1) hide show
  1. README.md +95 -0
README.md CHANGED
@@ -1,3 +1,98 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ base_model: blueyo0/SAM-Med3D
4
+ datasets:
5
+ - pcarnahan/MVSeg2023
6
+ pipeline_tag: image-segmentation
7
+ library_name: pytorch
8
+ tags:
9
+ - medical-imaging
10
+ - ultrasound
11
+ - echocardiography
12
+ - segmentation
13
+ - sam-med3d
14
+ - segment-anything
15
+ - 3d
16
+ - mitral-valve
17
+ model-index:
18
+ - name: UltraSAM-3D-Ultrasound-MVSeg
19
+ results:
20
+ - task:
21
+ type: image-segmentation
22
+ dataset:
23
+ name: MVSeg 2023
24
+ type: pcarnahan/MVSeg2023
25
+ metrics:
26
+ - type: dice
27
+ value: 0.87
28
+ name: Validation Dice
29
  ---
30
+
31
+ # UltraSAM — SAM-Med3D fine-tuned for 3D ultrasound (mitral valve)
32
+
33
+ A fine-tuned [SAM-Med3D](https://github.com/uni-medical/SAM-Med3D) checkpoint for
34
+ **promptable segmentation of the mitral valve in 3D echocardiography**, trained on
35
+ the MVSeg 2023 dataset with a boundary-aware objective.
36
+
37
+ 🏆 Part of the **UltraSAM** project — 4th place at **AI for Life 2026** Hackathon.
38
+
39
+ - **Code, training & interactive MONAI Label app:** https://github.com/thelet/UltraSAM-3D-Ultrasound-Segmentation
40
+ - **Base model:** SAM-Med3D (`vit_b_ori`, 128³ input)
41
+ - **Task:** interactive (click-prompted) binary segmentation
42
+ - **Modality:** 3D ultrasound / echocardiography
43
+
44
+ ## Results
45
+
46
+ Predicted mitral-valve segmentation on a held-out test case, shown in 3D Slicer.
47
+ **Pink = model prediction, yellow = ground truth.** Top: 3D surface renderings;
48
+ bottom: axial / sagittal / coronal slices with overlays.
49
+
50
+ <p align="center">
51
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6967bc554f6963a866d40495/m6rAelYl1mB66vZqk07z7.jpeg" width="700" alt="Qualitative result: prediction vs. ground truth">
52
+ </p>
53
+
54
+ ## Usage
55
+ ```python
56
+ import medim
57
+ model = medim.create_model(
58
+ "SAM-Med3D", pretrained=True,
59
+ checkpoint_path="sam_model_dice_best.pth",
60
+ )
61
+ ```
62
+ See the [GitHub repo](https://github.com/thelet/UltraSAM-3D-Ultrasound-Segmentation)
63
+ for the full inference pipeline (`run_infer_no_baseline.py`) and the interactive
64
+ 3D Slicer workflow.
65
+
66
+ ## Training
67
+
68
+ Fine-tuned for 200 epochs on MVSeg 2023 with a combined **DiceCE + 0.5·Boundary**
69
+ objective. Validation Dice plateaus around **~0.87**.
70
+
71
+ | Train Dice | Validation Dice |
72
+ |---|---|
73
+ | ![Train Dice](https://cdn-uploads.huggingface.co/production/uploads/6967bc554f6963a866d40495/0BxDZ-Quxtef-v0ihVBA2.png) | ![Validation Dice](https://cdn-uploads.huggingface.co/production/uploads/6967bc554f6963a866d40495/ysZLpgPeQVWgXo4vIafBu.png) |
74
+
75
+
76
+ ## Attribution & license
77
+
78
+ This model is a fine-tuned derivative of **SAM-Med3D** (Apache-2.0) and is released
79
+ under the same license. The base weights and architecture are the work of the
80
+ SAM-Med3D authors; this repository modifies them by fine-tuning on 3D
81
+ echocardiography (MVSeg 2023) with a boundary-aware objective.
82
+
83
+ - Base model: [SAM-Med3D](https://github.com/uni-medical/SAM-Med3D) (Apache-2.0)
84
+ - SAM-Med3D builds on Meta AI's [Segment Anything](https://github.com/facebookresearch/segment-anything) (Apache-2.0)
85
+ - Dataset: [MVSeg 2023](https://www.synapse.org/mvseg2023)
86
+
87
+ ### Citation
88
+ ```bibtex
89
+ @article{wang2023sammed3d,
90
+ title={SAM-Med3D},
91
+ author={Wang, Haoyu and Guo, Sizheng and Ye, Jin and Deng, Zhongying and
92
+ Cheng, Junlong and Li, Tianbin and Chen, Jianpin and Su, Yanzhou and
93
+ Huang, Ziyan and Shen, Yiqing and Fu, Bin and Zhang, Shaoting and
94
+ He, Junjun and Qiao, Yu},
95
+ journal={arXiv preprint arXiv:2310.15161},
96
+ year={2023}
97
+ }
98
+ ```