Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guopengf/reconformer
ReconFormer: Accelerated MRI Reconstruction Using Recurrent Transformer
https://github.com/guopengf/reconformer
deep-learning mri-reconstruction pytorch transformer
Last synced: 29 days ago
JSON representation
ReconFormer: Accelerated MRI Reconstruction Using Recurrent Transformer
- Host: GitHub
- URL: https://github.com/guopengf/reconformer
- Owner: guopengf
- License: mit
- Created: 2022-01-18T20:03:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T11:37:11.000Z (7 months ago)
- Last Synced: 2025-01-16T20:16:32.392Z (about 1 month ago)
- Topics: deep-learning, mri-reconstruction, pytorch, transformer
- Language: Python
- Homepage: https://arxiv.org/abs/2201.09376
- Size: 106 KB
- Stars: 61
- Watchers: 1
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ReconFormer
ReconFormer: Accelerated MRI Reconstruction Using Recurrent TransformerPytorch Code for the paper ["ReconFormer: Accelerated MRI Reconstruction Using Recurrent Transformer"](https://arxiv.org/abs/2201.09376)
**Updates**:
:rocket: : We release training and testing code \
:rocket: : We release pre-trained weights for fastMRI# Requirements
python=3.6
pytorch=1.7.0Please refer conda_environment.yml for more dependencies.
# Inroduction
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.## Dataset Preparation
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.
```bash
|--
|
| |--xxx.h5
Dataset Folder-----| |--train--|...
| | |...
| |
| |
|--PD -|
|
| |--xxx.h5
|-- val --|...
|...
```## Links for downloading the public datasets:
1) fastMRI Dataset - Link
2) 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.# Run
## Clone this repo
```bash
git clone [email protected]:guopengf/ReconFormer.git
```## Set up conda environment
```bash
cd ReconFormer
conda env create -f conda_environment.yml
conda activate recon
```
## Train ReconFormer
```bash
bash run_recon_exp.sh
```## Monitor the traning process
```bash
tensorboard --logdir 'Dir path for saving checkpoints'
```
## Test
(Download [pre-trained weights](https://livejohnshopkins-my.sharepoint.com/:f:/g/personal/pguo4_jh_edu/Er37oIyNy3NBrXbeCQBp_fQBAxELR8UDaq6gHd-fjwRrSw) Password: [email protected])
```bash
bash run_recon_eval.sh
```
## AckonwledgementsWe give acknowledgements to [fastMRI](https://github.com/facebookresearch/fastMRI), [Swin-Transformer
](https://github.com/microsoft/Swin-Transformer), and [SwinIR](https://github.com/JingyunLiang/SwinIR).# Citation
```bash
@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}
}
```