cmonnin commited on
Commit
9b298dc
·
verified ·
1 Parent(s): 121b25d

Add SynthStrip no-CSF browser model

Browse files

SynthStrip's no-CSF weights (`mri_synthstrip --no-csf`) for the brain extraction app and the `brain-extraction` command line in neurodesk/webapps.

Source: FreeSurfer's `synthstrip.nocsf.1.pt` (sha256 62bf01137c45b5f0cc04d59dbaed5b9ac138b3f25b766c062a7c1a0d696ecb28) from `freesurfer/synthstrip@sha256:ebbc177221194371f16362513ace68312a22922bb581bdfa618ac7ff9c1d2c06`. Exported to ONNX with neurodesk/vesselboost-webapp's `scripts/convert_synthstrip.py` (PyTorch 2.10.0, onnx 1.17.0), then rewritten for the browser with `packages/synthstrip/scripts/prepare-browser-model.py`. The same steps reproduce the published default model (`syncro/synthstrip-browser.onnx`, sha256 dc9e1199…) byte for byte.

File: `synthstrip/models/synthstrip-nocsf-browser.onnx`, 10,296,357 bytes, sha256 f60cbe2673325ba22b75cf40979cdff4236379c34892528d6185b6a592cc6da8.

On the app's T1 example, its mask differs from `mri_synthstrip --no-csf` in 2 of 1,425,011 voxels. License: Apache-2.0, as the default SynthStrip model.

synthstrip/models/synthstrip-nocsf-browser.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f60cbe2673325ba22b75cf40979cdff4236379c34892528d6185b6a592cc6da8
3
+ size 10296357