FastSurferCNN: download_checkpoints.py¶
download_checkpoints.py is a script to download the checkpoint files for all neural networks in FastSurfer. It can be used to install them for native installs or custom containers. FastSurfer automatically loads the checkpoints during the first run, if they do not exist.
For each checkpoint file, the script
checks existing checkpoints against the md5 checksums distributed with FastSurfer,
downloads missing checkpoints (or those with incorrect md5 checksums) from the official download mirrors, and
saves the downloaded checkpoint only after confirming its checksum; if no download matches, the script reports an error and leaves the existing file unchanged.
Full commandline interface of FastSurferCNN/download_checkpoints.py¶
Check and Download Network Checkpoints
usage: FastSurferCNN/download_checkpoints.py [-h] [--all] [--vinn]
[--cerebnet] [--cc] [--hypvinn]
[--url URL]
[files ...]
Positional Arguments¶
- files
Checkpoint file paths to download, e.g. checkpoints/aparc_vinn_axial_v2.0.0.pkl …
Named Arguments¶
- --all
Check and download all default checkpoints
Default:
False- --vinn
Check and download VINN default checkpoints
Default:
False- --cerebnet
Check and download CerebNet default checkpoints
Default:
False- --cc
Check and download Corpus Callosum default checkpoints
Default:
False- --hypvinn
Check and download HypVinn default checkpoints
Default:
False- --url
Specify you own base URL. This is applied to all models. Default for VINN: [’https://b2share.fz-juelich.de/api/files/a423a576-220d-47b0-9e0c-b5b32d45fc59’, ‘https://zenodo.org/records/10390573/files’] Default for CerebNet: [’https://b2share.fz-juelich.de/api/files/864b2ed5-e91e-4c2c-aa7a-c16b7c751b35’, ‘https://zenodo.org/records/10390742/files’] Default for CorpusCallosum: [’https://b2share.fz-juelich.de/api/files/e4eb699c-ba68-4470-9f3d-89ceeee1a334’, ‘https://zenodo.org/records/17141933/files’] Default for HypVINN: [’https://b2share.fz-juelich.de/api/files/d9e37247-5455-4c83-853d-21e31fb5bea5’, ‘https://zenodo.org/records/11184216/files’]