File size: 10,634 Bytes
9bb2118 eb6e109 2dfcb64 eb6e109 9bb2118 eb6e109 2dfcb64 eb6e109 2dfcb64 eb6e109 2dfcb64 eb6e109 2dfcb64 eb6e109 2dfcb64 eb6e109 2dfcb64 eb6e109 2dfcb64 b7c2a94 2dfcb64 eb6e109 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | ---
license: mit
library_name: pytorch
pipeline_tag: image-segmentation
buckets:
- BrainVascuLab/vesselboost-ci
tags:
- medical-imaging
- mri
- tof-mra
- t2star
- vessel-segmentation
- brain-vasculature
- unet3d
- pytorch
---
# VesselBoost pretrained weights
## Model purpose
VesselBoost segments small blood vessels in high-resolution human brain MRI. The primary models target time-of-flight magnetic resonance angiography (TOF-MRA). One checkpoint, `t2s_mod_ep1k2_0728`, provides experimental support for T2*-weighted MRI.
These files are PyTorch state dictionaries for use with the VesselBoost inference, test-time adaptation, and boosting workflows. They are not standalone Hugging Face Transformers models or hosted inference endpoints.
**Research use only. Not validated for clinical diagnosis, treatment planning, or other clinical decision-making.**
## Architecture and release pin
The checkpoints use the VesselBoost 3D U-Net with one input channel, one output channel, and 16 base filters. The network has four encoder stages, a bridge, four decoder stages with transposed-convolution upsampling and skip connections, and a final 1 x 1 x 1 convolution. Each convolutional block contains two 3 x 3 x 3 convolutions with batch normalization and ReLU activation.
The corresponding source release is pinned to:
- VesselBoost version: `2.0.2`
- Git tag: [`v2.0.2`](https://github.com/KMarshallX/VesselBoost/tree/v2.0.2)
- Git commit: [`1504b00c91777d5e2c271c1cab7f500078f08c69`](https://github.com/KMarshallX/VesselBoost/commit/1504b00c91777d5e2c271c1cab7f500078f08c69)
See `config.json` for the machine-readable inference configuration.
## Checkpoints
All pretrained checkpoints are stored under `weights/`. Their original filenames and serialization formats are preserved from the original release.
| Checkpoint | MRI contrast | Description |
| ------------------------------------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| [`BM_VB2_aug_all_ep2k_bat_10_0903`](weights/BM_VB2_aug_all_ep2k_bat_10_0903) | TOF-MRA | Primary TOF-MRA checkpoint referenced by the VesselBoost documentation and tests; trained with the combined augmentation configuration. |
| [`VB2_aug_intensity_ep2k_bat10_0903`](weights/VB2_aug_intensity_ep2k_bat10_0903) | TOF-MRA | Augmentation ablation using the intensity augmentation configuration. |
| [`VB2_aug_off_ep2k_bat10_0903`](weights/VB2_aug_off_ep2k_bat10_0903) | TOF-MRA | Augmentation ablation with augmentation disabled. |
| [`VB2_aug_random_ep2k_bat10_0903`](weights/VB2_aug_random_ep2k_bat10_0903) | TOF-MRA | Augmentation ablation using the random augmentation configuration. |
| [`VB2_aug_spatial_ep2k_bat10_0903`](weights/VB2_aug_spatial_ep2k_bat10_0903) | TOF-MRA | Augmentation ablation using the spatial augmentation configuration. |
| [`manual_0429`](weights/manual_0429) | TOF-MRA | Legacy checkpoint associated with the manual-label training run and used in VesselBoost v2.0.2 examples. |
| [`omelette1_0429`](weights/omelette1_0429) | TOF-MRA | Legacy TOF-MRA checkpoint identified as Omelette variant 1. |
| [`omelette2_0429`](weights/omelette2_0429) | TOF-MRA | Legacy TOF-MRA checkpoint identified as Omelette variant 2.Β |
| [`t2s_mod_ep1k2_0728`](weights/t2s_mod_ep1k2_0728) | T2*-weighted MRI | Experimental T2*-weighted vessel-segmentation checkpoint. It has not received the same validation as the primary TOF-MRA model. |
The augmentation-specific checkpoints are included to preserve the original model set and support comparison or reproduction of augmentation experiments. For the standard TOF-MRA prediction workflow, use `manual_0429` or `BM_VB2_aug_all_ep2k_bat_10_0903` unless reproducing a specific legacy experiment.
## Downloading checkpoints
Install the Hugging Face command-line client:
```bash
python -m pip install huggingface_hub
```
Download the primary TOF-MRA checkpoint:
```bash
hf download BrainVascuLab/VesselBoost \
weights/BM_VB2_aug_all_ep2k_bat_10_0903 \
--local-dir saved_models
```
The downloaded checkpoint will be available at `saved_models/weights/BM_VB2_aug_all_ep2k_bat_10_0903`.
Download every pretrained checkpoint and the checksum manifest:
```bash
hf download BrainVascuLab/VesselBoost \
--include "weights/*" \
--local-dir saved_models
```
For reproducible automated workflows, pass `--revision` with a specific Hugging Face commit hash rather than relying on the moving `main` branch.
## Preprocessing and inference
VesselBoost v2.0.2 performs the following inference operations:
1. Load a single-channel NIfTI MRI volume.
2. Resize each spatial dimension to at least 64 voxels and to a multiple of 64, using nearest-neighbor interpolation.
3. Apply whole-volume z-score standardization: subtract the volume mean and divide by its standard deviation. A constant-valued volume is mapped to zeros.
4. Divide the standardized image into non-overlapping `64 x 64 x 64` patches. The optional Gaussian-blending path uses overlapping patches.
5. Apply the 3D U-Net and a sigmoid activation to obtain vessel probabilities.
6. Threshold probabilities at the default value of `0.1`.
7. Remove connected components smaller than `10` voxels using 26-connectivity.
8. Resize the prediction back to the original image dimensions.
VesselBoost preprocessing modes can optionally perform N4 bias-field correction, denoising, both operations, or neither. Use the same preprocessing choices used for validation when comparing results. Brain extraction is optional and requires separate SynthStrip weights; those third-party weights are not part of this model release.
## Integrity verification
SHA-256 checksums for every checkpoint are provided in [`weights/MANIFEST.sha256`](weights/MANIFEST.sha256). After downloading all files, verify them with:
```bash
cd saved_models/weights
sha256sum --check MANIFEST.sha256
```
All nine checkpoints should report `OK`.
Load the checkpoints with the pinned VesselBoost source and map tensors to the intended device. When supported by the installed PyTorch version, use `weights_only=True` when loading these state dictionaries.
## Known limitations and expected failure cases
- The models were developed for research MRI data and may not generalize to unseen scanners, field strengths, acquisition protocols, resolutions, populations, pathologies, or non-brain anatomy.
- The primary models target TOF-MRA. Applying them to other contrasts can produce unreliable results; T2* support is explicitly experimental.
- Bright non-vascular structures, noise, motion, ringing, bias fields, susceptibility artifacts, and incomplete brain masking can cause false positives.
- Low vessel contrast, slow or turbulent flow, signal dropout, very small vessels, severe pathology, and partial-volume effects can cause false negatives or disconnected vessels.
- Z-score standardization is performed over the supplied volume. Large background regions, unexpected cropping, NaN or infinite intensities, and constant-valued images can change or invalidate the result.
- Resizing and patch boundaries can alter fine structures. Gaussian blending may reduce patch-boundary artifacts but changes the inference procedure and should be reported.
- The default probability threshold of `0.1` and component cutoff of `10` voxels may require validation for a new dataset. Tuning them on evaluation cases can bias reported performance.
- Training labels for small vessels can be incomplete or imperfect. Predictions should not be interpreted as a complete representation of the cerebral vasculature.
- Detailed provenance for `manual_0429`, `omelette1_0429`, and `omelette2_0429` training runs is documented in our ApertureNeuro journal article *VesselBoost: A Python Toolbox for Small Blood Vessel Segmentation in Human Magnetic Resonance Angiography Data*.
## GitHub Actions CI outputs
The latest generated outputs from VesselBoost's GitHub Actions test workflows are stored in the public [VesselBoost CI bucket](https://huggingface.co/buckets/BrainVascuLab/vesselboost-ci).
The bucket uses the following layout:
```text
github_actions/
βββ boost/predicted_labels/
βββ docker/saved_model/
βββ prediction/predicted_labels/
βββ train/saved_model/
βββ tta/predicted_labels/
```
These files are automated CI diagnostics, not validated model releases or benchmark results. Each successful push-triggered workflow replaces the previous contents of its corresponding directory.
## Resources and citation
- Paper DOI: [10.52294/001c.123217](https://doi.org/10.52294/001c.123217)
- Published article: [VesselBoost: A Python Toolbox for Small Blood Vessel Segmentation in Human Magnetic Resonance Angiography Data](https://apertureneuro.org/article/123217-vesselboost-a-python-toolbox-for-small-blood-vessel-segmentation-in-human-magnetic-resonance-angiography-data)
- GitHub: [KMarshallX/VesselBoost](https://github.com/KMarshallX/VesselBoost)
- OSF project and original model distribution: [osf.io/abk4p](https://osf.io/abk4p/)
Please cite:
```bibtex
@article{xuVesselBoostPythonToolbox2024,
title = {VesselBoost: A Python Toolbox for Small Blood Vessel Segmentation in Human Magnetic Resonance Angiography Data},
author = {Xu, Marshall and Ribeiro, Fernanda L. and Barth, Markus and Bernier, Micha\"el and Bollmann, Steffen and Chatterjee, Soumick and Cognolato, Francesco and Gulban, Omer F. and Itkyal, Vaibhavi and Liu, Siyu and Mattern, Hendrik and Polimeni, Jonathan R. and Shaw, Thomas B. and Speck, Oliver and Bollmann, Saskia},
journal = {Aperture Neuro},
volume = {4},
year = {2024},
doi = {10.52294/001c.123217}
}
```
## License
The files in this model release are provided under the MIT License. See `LICENSE`.
|