rciric commited on
Commit
2452b78
·
verified ·
1 Parent(s): 487e5b0

Initial upload via tools/push_to_hf.py (architecture: ilex.models.fsm_seg.FSMSeg)

Browse files
Files changed (3) hide show
  1. README.md +68 -0
  2. config.json +48 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: ilex
3
+ tags:
4
+ - jax
5
+ - equinox
6
+ - ilex
7
+ - neuroimaging
8
+ - small-fov
9
+ license: other
10
+ license_name: freesurfer-software-license
11
+ license_link: https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense
12
+ ---
13
+
14
+ # FSM-family small-FOV segmentation -- Venous sinuses (6 labels)
15
+
16
+ ## Description
17
+
18
+ A small 3-level neurite UNet shared by five FreeSurfer segmentation tools, ported to JAX / Equinox from the FreeSurfer bundled reference implementations. The architecture is a compact variant of the SynthSeg / SynthSR UNet body (nb_features=24, nb_levels=3, conv_size=3, feat_mult=2, nb_conv_per_level=2, per-level BatchNorm, ELU activation, 1-channel T1 input, softmax head). Five published variants share this architecture exactly; they differ only in the number of output labels and in the recommended inference field of view. The variant id is recorded in the bundle's card, so loading by repo id selects the appropriate weights without changing the JAX class.
19
+
20
+ ## Intended use
21
+
22
+ Segmentation of the major venous sinuses from a single T1w volume conformed to a 144 mm cube FoV.
23
+
24
+ ## Usage
25
+
26
+ ```python
27
+ from ilex.models.fsm_seg import FSMSeg
28
+ model = FSMSeg.from_pretrained('ilex-hub/fsm_seg.vsinus.1')
29
+ ```
30
+
31
+ ## Authors
32
+
33
+ Greve D. N., Billot B., Cordero-Grande L., Van Leemput K., Fischl B., Iglesias J. E.; with substantial overlap across variants -- per-variant first authors are listed under references.
34
+
35
+ ## Citation
36
+
37
+ Per variant. sclimbic: Greve D. N., Billot B., Cordero-Grande L., et al. (2021). NeuroImage 244:118610. doi:10.1016/j.neuroimage.2021.118610. hypothalamic_subunits: Billot B., Bocchetta M., Todd E., Dalca A. V., Rohrer J. D., Iglesias J. E. (2020). NeuroImage 223:117287. doi:10.1016/j.neuroimage.2020.117287. entowm, mca-dura, vsinus: FreeSurfer 8.x release notes (no separate primary publications).
38
+
39
+ ### References
40
+
41
+ - Greve D. N., Billot B., Cordero-Grande L., et al. (2021). A deep learning toolbox for automatic segmentation of subcortical limbic structures from MRI images. NeuroImage, 244:118610. doi:10.1016/j.neuroimage.2021.118610. (sclimbic variant.)
42
+ - Billot B., Bocchetta M., Todd E., Dalca A. V., Rohrer J. D., Iglesias J. E. (2020). Automated segmentation of the hypothalamus and associated subunits in brain MRI. NeuroImage, 223:117287. doi:10.1016/j.neuroimage.2020.117287. (hypothalamic_subunits variant.)
43
+ - mri_entowm_seg, mri_mcadura_seg, mri_vsinus_seg are FreeSurfer utility variants of the sclimbic architecture; the underlying network is the same and the FreeSurfer release notes document their introduction without separate primary publications.
44
+
45
+ ## License
46
+
47
+ HF Hub license tag: `other`
48
+ HF Hub license slug: `freesurfer-software-license`
49
+
50
+ **Effective terms:** FreeSurfer Software License: academic / non-commercial use only. Pending explicit upstream confirmation that re-hosting on HF Hub is acceptable. Resolve before flipping `published: true`.
51
+
52
+ Upstream license reference: https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense
53
+
54
+ ### Copyright
55
+
56
+ Network architectures, training code, and pretrained weights: copyright (c) the respective upstream authors, distributed as part of the FreeSurfer software bundle under the FreeSurfer Software License (FSLA; permissive academic / non-commercial research offering). See https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense for the binding terms. JAX / Equinox port code: copyright (c) the ilex authors, released under the Apache-2.0 / GPL-3.0 dual license used by ilex itself.
57
+
58
+ ## Upstream source
59
+
60
+ Original weights / reference implementation: https://surfer.nmr.mgh.harvard.edu/
61
+
62
+ ## Provenance
63
+
64
+ This artefact was produced by [ilex](https://github.com/hypercoil/ilex)'s
65
+ save/load pipeline. The architecture is implemented in
66
+ `ilex.models.fsm_seg.FSMSeg` and the weights have been converted
67
+ from their upstream format. See the upstream source above
68
+ for the canonical reference.
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_ilex": {
3
+ "architecture": "ilex.models.fsm_seg.model.FSMSeg",
4
+ "constructor_kwargs": {
5
+ "feat_mult": 2,
6
+ "nb_conv_per_level": 2,
7
+ "nb_features": 24,
8
+ "nb_labels": 6,
9
+ "nb_levels": 3,
10
+ "pool_size": 2,
11
+ "src_feats": 1
12
+ },
13
+ "format": "ilex",
14
+ "framework_version": {
15
+ "equinox": "0.13.8",
16
+ "ilex": "0.0.0.dev0",
17
+ "jax": "0.10.0",
18
+ "jaxlib": "0.10.0",
19
+ "numpy": "2.4.4",
20
+ "safetensors": "0.7.0"
21
+ },
22
+ "has_state": true,
23
+ "origin": "ilex-native"
24
+ },
25
+ "authors": "Greve D. N., Billot B., Cordero-Grande L., Van Leemput K., Fischl B., Iglesias J. E.; with substantial overlap across variants -- per-variant first authors are listed under references.",
26
+ "copyright": "Network architectures, training code, and pretrained weights: copyright (c) the respective upstream authors, distributed as part of the FreeSurfer software bundle under the FreeSurfer Software License (FSLA; permissive academic / non-commercial research offering). See https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense for the binding terms. JAX / Equinox port code: copyright (c) the ilex authors, released under the Apache-2.0 / GPL-3.0 dual license used by ilex itself.",
27
+ "data_type": "nibabel",
28
+ "description": "A small 3-level neurite UNet shared by five FreeSurfer segmentation tools, ported to JAX / Equinox from the FreeSurfer bundled reference implementations. The architecture is a compact variant of the SynthSeg / SynthSR UNet body (nb_features=24, nb_levels=3, conv_size=3, feat_mult=2, nb_conv_per_level=2, per-level BatchNorm, ELU activation, 1-channel T1 input, softmax head). Five published variants share this architecture exactly; they differ only in the number of output labels and in the recommended inference field of view. The variant id is recorded in the bundle's card, so loading by repo id selects the appropriate weights without changing the JAX class.",
29
+ "equinox_version": "0.13.8",
30
+ "ilex_version": "0.0.0.dev0",
31
+ "image_classes": "Single-channel T1-weighted MRI volume conformed to the variant's recommended FoV (160 mm cube, 144 mm cube, or 72 mm cube).",
32
+ "intended_use": "Small-FOV brain structure segmentation from a single T1-weighted volume. Inputs are conformed to the recommended FoV per variant (sclimbic / hypothalamic_subunits / entowm at 160 mm cube, vsinus at 144 mm cube, mca-dura at 72 mm cube) and intensity- normalised per the upstream preprocessing recipe (mri_sclimbic_seg's normalisation path -- min/max + percentile clipping). The output is a per-voxel softmax over the variant- specific label set.",
33
+ "jax_version": "0.10.0",
34
+ "network_data_format": {
35
+ "inputs": {},
36
+ "outputs": {}
37
+ },
38
+ "numpy_version": "2.4.4",
39
+ "pred_classes": "Per-voxel softmax over nb_labels classes -- the variant-specific label set (sclimbic 14; hypothalamic_subunits 11; vsinus 6; entowm 5; mca-dura 2). The corresponding label IDs and names are recorded in the upstream .ctab colour table that FreeSurfer distributes alongside each model.",
40
+ "references": [
41
+ "Greve D. N., Billot B., Cordero-Grande L., et al. (2021). A deep learning toolbox for automatic segmentation of subcortical limbic structures from MRI images. NeuroImage, 244:118610. doi:10.1016/j.neuroimage.2021.118610. (sclimbic variant.)",
42
+ "Billot B., Bocchetta M., Todd E., Dalca A. V., Rohrer J. D., Iglesias J. E. (2020). Automated segmentation of the hypothalamus and associated subunits in brain MRI. NeuroImage, 223:117287. doi:10.1016/j.neuroimage.2020.117287. (hypothalamic_subunits variant.)",
43
+ "mri_entowm_seg, mri_mcadura_seg, mri_vsinus_seg are FreeSurfer utility variants of the sclimbic architecture; the underlying network is the same and the FreeSurfer release notes document their introduction without separate primary publications."
44
+ ],
45
+ "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json",
46
+ "task": "Small-FOV brain structure segmentation (FSM family)",
47
+ "version": "0.0.0"
48
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:891a56c755dafafbea9a92f62f859ad8ce58c16e3d48f032645302af7b044eb8
3
+ size 3186308