rciric's picture
Initial upload via tools/push_to_hf.py (architecture: ilex.models.fastsurfer_cnn.FastSurferCNN)
de4ee8c verified
{
"_ilex": {
"architecture": "ilex.models.fastsurfer_cnn.model.FastSurferCNN",
"constructor_kwargs": {
"kernel_h": 5,
"kernel_w": 5,
"num_channels": 7,
"num_classes": 79,
"num_filters": 64,
"pool": 2,
"stride_pool": 2
},
"format": "ilex",
"framework_version": {
"equinox": "0.13.8",
"ilex": "0.0.0.dev0",
"jax": "0.10.0",
"jaxlib": "0.10.0",
"numpy": "2.4.4",
"safetensors": "0.7.0"
},
"has_state": false,
"origin": "ilex-native"
},
"authors": "Henschel L., Conjeti S., Estrada S., Diers K., Fischl B., Reuter M.",
"copyright": "Network architecture and training code: copyright (c) Image Analysis Lab, German Center for Neurodegenerative Diseases (DZNE), Bonn, distributed under the Apache-2.0 license at https://github.com/Deep-MI/FastSurfer. Pretrained weights (checkpoints/Axial_Weights_FastSurferCNN, checkpoints/Coronal_Weights_FastSurferCNN, checkpoints/Sagittal_Weights_FastSurferCNN, all under Epoch_30_training_state.pkl) ship from the same Apache-2.0 repository and inherit the same license. The ilex JAX / Equinox port code is separately licensed under Apache-2.0 / GPL-3.0 for the port code itself; the ilex license does not override the upstream Apache-2.0 terms governing the pretrained weights.",
"data_type": "nibabel",
"description": "FastSurferCNN is a per-slice 2D Competitive-Dense-UNet for whole-brain parcellation, the pre-VINN \"v1\" architecture introduced in Henschel et al. 2020. This ilex bundle ports the FastSurfer release at GitHub commit 070647d (Jun 2022), which is the version DeepPrep pins to. The full triplanar parcellation pipeline combines three independently-trained checkpoints (axial, coronal, sagittal); each sees per-slice 7-thick-slab inputs of shape (7, 256, 256) and predicts per-pixel class logits over a 79-class space (axial / coronal) or 51-class space (sagittal, where left/right hemispheric labels collapse and are recovered downstream). The architecture comprises four CompetitiveEncoderBlocks (the first with an input-variant BN layer), a CompetitiveDenseBlock bottleneck, four CompetitiveDecoderBlocks with skip-connection-Maxout fusion, and a 1x1 classifier Conv2d. The per-block \"Maxout\" gates take elementwise max of the BN-normalised activation against the previous Maxout output (or the raw input, for the first gate), and the encoder / decoder are coupled via MaxPool / MaxUnpool with stored argmax indices.",
"equinox_version": "0.13.8",
"ilex_version": "0.0.0.dev0",
"image_classes": "Single-channel 3D T1-weighted MRI volume, conformed to UCHAR intensity, 1 mm isotropic spacing, 256x256x256 spatial extent, RAS+ orientation.",
"intended_use": "Research only. Per-voxel parcellation of conformed 3D T1-weighted MRI volumes into FreeSurfer aparc.DKTatlas+aseg label space. Inputs must be conformed to UCHAR, 1 mm isotropic, 256x256x256, RAS+ orientation (the upstream uses FreeSurfer's mri_convert -c conform op; the conform step is not yet vendored on the ilex side -- see DEVNOTES.md). The full triplanar pipeline runs the axial, coronal, and sagittal nets and sums per-class softmax probabilities across the three views; the sagittal output is remapped from 51 to 79 classes via map_prediction_sagittal2full before aggregation.",
"jax_version": "0.10.0",
"label_classes": "79 FreeSurfer aparc.DKTatlas+aseg label IDs (33 subcortical / structural + 31 left-hemispheric cortical + 14 right-hemispheric cortical), remapped from the contiguous network index space [0, 79) via the LABEL_INDEX_TO_FREESURFER_ID lookup in ilex.models.fastsurfer_cnn._inference.",
"network_data_format": {
"inputs": {},
"outputs": {}
},
"numpy_version": "2.4.4",
"pred_classes": "Per-voxel int32 label IDs in the FreeSurfer aparc.DKTatlas+aseg convention (e.g. 2 = Left-Cerebral-White-Matter, 17 = Left-Hippocampus, 1023 = ctx-lh-posteriorcingulate). The 79-class network output index space is contiguous [0, 79) and is mapped to the FreeSurfer label IDs by the ilex.models.fastsurfer_cnn.pipeline.parcellate entry point.",
"references": [
"Henschel L., Conjeti S., Estrada S., Diers K., Fischl B., Reuter M. (2020). FastSurfer - A fast and accurate deep learning based neuroimaging pipeline. NeuroImage 219:117012. doi:10.1016/j.neuroimage.2020.117012",
"Roy A. G., Conjeti S., Sheet D., Katouzian A., Navab N., Wachinger C. (2017). Error Corrective Boosting for Learning Fully Convolutional Networks with Limited Data. MICCAI 2017 LNCS 10435:231-239. doi:10.1007/978-3-319-66179-7_27 (the Competitive-Dense-UNet design that FastSurferCNN extends)"
],
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json",
"task": "Per-voxel brain parcellation into FreeSurfer aparc.DKTatlas+aseg label space.",
"version": "0.0.0"
}