A complete pre-trained deep learning pipeline for data-consistent quantitative susceptibility mapping trained with hybrid data.
https://doi.org/10.48550/arXiv.2107.07752
NeXtQSM requires tensorflow
and packaging
as dependencies. It also requires a set of training weights for inference (~150 MB).
Example setup using conda:
git clone https://github.com/QSMxT/NeXtQSM.git nextqsm
cd nextqsm/
conda create --name nextqsm python=3.8
conda activate nextqsm
conda install tensorflow packaging
Run the following from inside the repository folder to add the weights:
pip install cloudstor
python -c "import cloudstor; cloudstor.cloudstor(url='https://cloudstor.aarnet.edu.au/plus/s/5OehmoRrTr9XlS5', password='').download('', 'nextqsm-weights.tar')"
tar xf nextqsm-weights.tar -C checkpoints/
rm nextqsm-weights.tar
Run NeXtQSM using the following command, providing an unwrapped frequency map (Hz) and brain mask as inputs in the NIfTI file format:
python predict_all.py [phase_file] [mask_file] [out_file]