ReconFormer: Accelerated MRI Reconstruction Using Recurrent Transformer
Pytorch Code for the paper "ReconFormer: Accelerated MRI Reconstruction Using Recurrent Transformer"
Updates:
🚀 : We release training and testing code
🚀 : We release pre-trained weights for fastMRI
python=3.6
pytorch=1.7.0
Please refer conda_environment.yml for more dependencies.
Accelerating magnetic resonance imaging (MRI) reconstruction process is a challenging ill-posed inverse problem due to the excessive under-sampling operation in k-space. In this paper, we propose a recurrent transformer model, namely ReconFormer, for MRI reconstruction which can iteratively reconstruct high fidelity magnetic resonance images from highly under-sampled k-space data. In particular, the proposed architecture is built upon Recurrent Pyramid Transformer Layers (RPTLs), which jointly exploits intrinsic multi-scale information at every architecture unit as well as the dependencies of the deep feature correlation through recurrent states. Moreover, the proposed ReconFormer is lightweight since it employs the recurrent structure for its parameter efficiency.
Prepare the dataset in the following structure for easy use of the code.The provided data loaders is ready for this this format and you may change it as your need.
|--
|
| |--xxx.h5
Dataset Folder-----| |--train--|...
| | |...
| |
| |
|--PD -|
|
| |--xxx.h5
|-- val --|...
|...
- fastMRI Dataset - Link
- HPKS Dataset - We don't obtain the permission from Johns Hopkins Hospital to release this dataset.
Preprocessed fastMRI (OneDrive) - Link
Password: pguo4
Note: In preprocessed fastMRI, We didn't modify the original fastMRI data and just make the format compatible with our DataLoader.
git clone git@github.com:guopengf/ReconFormer.git
cd ReconFormer
conda env create -f conda_environment.yml
conda activate recon
bash run_recon_exp.sh
tensorboard --logdir 'Dir path for saving checkpoints'
(Download pre-trained weights Password: pguo4@jhu.edu)
bash run_recon_eval.sh
We give acknowledgements to fastMRI, Swin-Transformer , and SwinIR.
@article{guo2022reconformer,
title={ReconFormer: Accelerated MRI Reconstruction Using Recurrent Transformer},
author={Guo, Pengfei and Mei, Yiqun and Zhou, Jinyuan and Jiang, Shanshan and Patel, Vishal M},
journal={arXiv preprint arXiv:2201.09376},
year={2022}
}