rciric commited on
Commit
a8e7488
·
verified ·
1 Parent(s): c3507f0

Initial upload via tools/push_to_hf.py (architecture: ilex.models.synthstrip.SynthStrip)

Browse files
Files changed (3) hide show
  1. README.md +66 -0
  2. config.json +49 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: ilex
3
+ tags:
4
+ - jax
5
+ - equinox
6
+ - ilex
7
+ - neuroimaging
8
+ - skull
9
+ license: mit
10
+ license_link: https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/
11
+ ---
12
+
13
+ # SynthStrip -- Main model
14
+
15
+ ## Description
16
+
17
+ SynthStrip skull-stripping network ported to JAX / Equinox from the FreeSurfer mri_synthstrip reference implementation. The network is trained with synthesis-based domain randomisation and is contrast-agnostic across modalities (T1w, T2w, FLAIR, DWI, etc.). It outputs a signed distance transform (SDT) of the brain surface; downstream tooling thresholds the SDT to obtain a binary brain mask.
18
+
19
+ ## Intended use
20
+
21
+ General-purpose adult skull stripping. The 90% case.
22
+
23
+ ## Usage
24
+
25
+ ```python
26
+ from ilex.models.synthstrip import SynthStrip
27
+ model = SynthStrip.from_pretrained('ilex-hub/synthstrip.1')
28
+ ```
29
+
30
+ ## Authors
31
+
32
+ Hoopes A., Mora J. S., Dalca A. V., Fischl B., Hoffmann M.
33
+
34
+ ## Citation
35
+
36
+ Hoopes A., Mora J. S., Dalca A. V., Fischl B., Hoffmann M. (2022). SynthStrip: Skull-Stripping for Any Brain Image. NeuroImage, 260:119474. doi:10.1016/j.neuroimage.2022.119474
37
+
38
+ ### References
39
+
40
+ - Hoopes A., Mora J. S., Dalca A. V., Fischl B., Hoffmann M. (2022). SynthStrip: Skull-Stripping for Any Brain Image. NeuroImage, 260:119474. doi:10.1016/j.neuroimage.2022.119474
41
+ - Kelley W. et al. (2024). Boosting Skull-Stripping Performance for Pediatric Brain Images. IEEE International Symposium on Biomedical Imaging (ISBI).
42
+ - Hoffmann M. (2025). Domain-Randomized Deep Learning for Neuroimage Analysis. IEEE Signal Processing Magazine.
43
+
44
+ ## License
45
+
46
+ HF Hub license tag: `mit`
47
+
48
+ **Effective terms:** MIT or CC-BY-4.0, at the licensee's option, per the upstream FreeSurfer offer at the license_url. The HF Hub tag is `mit` for searchability; the dual nature of the offer survives in this field and in the README License section.
49
+
50
+ Upstream license reference: https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/
51
+
52
+ ### Copyright
53
+
54
+ Network architecture and training code: copyright (c) 2022 The General Hospital Corporation, distributed as part of FreeSurfer (GPL-2.0). Pretrained weights: dual-licensed by upstream as MIT or CC-BY-4.0 (see https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/). JAX / Equinox port: copyright (c) the ilex authors, released under the Apache-2.0 / GPL-3.0 dual license used by ilex itself.
55
+
56
+ ## Upstream source
57
+
58
+ Original weights / reference implementation: https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/
59
+
60
+ ## Provenance
61
+
62
+ This artefact was produced by [ilex](https://github.com/hypercoil/ilex)'s
63
+ save/load pipeline. The architecture is implemented in
64
+ `ilex.models.synthstrip.SynthStrip` and the weights have been converted
65
+ from their upstream format. See the upstream source above
66
+ for the canonical reference.
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_ilex": {
3
+ "architecture": "ilex.models.synthstrip.model.SynthStrip",
4
+ "constructor_kwargs": {
5
+ "feat_mult": 2,
6
+ "inshape": null,
7
+ "max_features": 64,
8
+ "max_pool": 2,
9
+ "nb_conv_per_level": 2,
10
+ "nb_features": 16,
11
+ "nb_levels": 7,
12
+ "return_mask": false
13
+ },
14
+ "format": "ilex",
15
+ "framework_version": {
16
+ "equinox": "0.13.8",
17
+ "ilex": "0.0.0.dev0",
18
+ "jax": "0.10.0",
19
+ "jaxlib": "0.10.0",
20
+ "numpy": "2.4.4",
21
+ "safetensors": "0.7.0"
22
+ },
23
+ "has_state": false,
24
+ "origin": "ilex-native"
25
+ },
26
+ "authors": "Hoopes A., Mora J. S., Dalca A. V., Fischl B., Hoffmann M.",
27
+ "copyright": "Network architecture and training code: copyright (c) 2022 The General Hospital Corporation, distributed as part of FreeSurfer (GPL-2.0). Pretrained weights: dual-licensed by upstream as MIT or CC-BY-4.0 (see https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/). JAX / Equinox port: copyright (c) the ilex authors, released under the Apache-2.0 / GPL-3.0 dual license used by ilex itself.",
28
+ "data_type": "nibabel",
29
+ "description": "SynthStrip skull-stripping network ported to JAX / Equinox from the FreeSurfer mri_synthstrip reference implementation. The network is trained with synthesis-based domain randomisation and is contrast-agnostic across modalities (T1w, T2w, FLAIR, DWI, etc.). It outputs a signed distance transform (SDT) of the brain surface; downstream tooling thresholds the SDT to obtain a binary brain mask.",
30
+ "equinox_version": "0.13.8",
31
+ "ilex_version": "0.0.0.dev0",
32
+ "image_classes": "Single-channel 3D structural MRI volume, contrast-agnostic. Inputs at 1 mm isotropic voxel size and conformed to LIA orientation are recommended for parity with the published checkpoint behaviour.",
33
+ "intended_use": "Research only. Skull stripping of 3D structural MRI volumes that have been conformed to 1 mm isotropic voxels, intensity-normalised (subtract minimum, divide by 99th percentile, clip to [0, 1]), and padded to a multiple of 64 along each spatial axis -- see the FreeSurfer mri_synthstrip preprocessing pipeline.",
34
+ "jax_version": "0.10.0",
35
+ "network_data_format": {
36
+ "inputs": {},
37
+ "outputs": {}
38
+ },
39
+ "numpy_version": "2.4.4",
40
+ "pred_classes": "Single-channel signed distance transform of the brain surface (positive outside, negative inside). Threshold at 1 mm to obtain the binary brain mask used by mri_synthstrip's CLI.",
41
+ "references": [
42
+ "Hoopes A., Mora J. S., Dalca A. V., Fischl B., Hoffmann M. (2022). SynthStrip: Skull-Stripping for Any Brain Image. NeuroImage, 260:119474. doi:10.1016/j.neuroimage.2022.119474",
43
+ "Kelley W. et al. (2024). Boosting Skull-Stripping Performance for Pediatric Brain Images. IEEE International Symposium on Biomedical Imaging (ISBI).",
44
+ "Hoffmann M. (2025). Domain-Randomized Deep Learning for Neuroimage Analysis. IEEE Signal Processing Magazine."
45
+ ],
46
+ "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json",
47
+ "task": "Skull stripping (brain extraction) of structural MRI volumes",
48
+ "version": "0.1.0"
49
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5a6ce7a36c727b83a4ab6a0e50181dfa945c86d0f29d6f3a352031ebd681fda
3
+ size 10271412