A deep learning framework to learn a task-adaptive under-sampling pattern and reconstruct MRI in end-to-end way. This is a course project of BME 548 Machine Learning and Imaging at Duke University.
This project is based on python. Before starting playing with it, please ensure that you are familiar with python environment setup.
- Clone the repo
git clone https://github.com/ZihaoChen0319/Deep-MR-Reconstruction-And-Undersampling-Pattern-Learning
2.Install the required python packages
pip install -r requirements.txt
The datasets used here are from Medical Segmentation Decathlon, which contains 10 different medical image segmentation tasks. You can download the datasets by yourself or use your own datasets.
Please place the dataset at ./Data
or the dir you like. The structure of dataset file folder should be like:
./Data
└── your_dataset
├── imagesTr
├── labelsTr
└── (optional) dataset.json
Please set data_dir
and data_name
in data_preprocess.py
based on your situation, then run:
python data_preprocess.py
The processed data will be saved at data_dir/data_name_np
.
Please set if_train=True
and other parameters in main.py
based on your situation, then run:
python main.py
Please set if_train=False
in main.py
and run:
python main.py
- Implementation of the framework
- Add a framework figure
- Use
argparse
indata_preprocess.py
,main.py
andvisualize.py
- Enable the cartesian under-sampling pattern
- C. D. Bahadir, A. Q. Wang, A. V. Dalca, and M. R. Sabuncu, “Deep-Learning-Based Optimization of the Under-Sampling Pattern in MRI,” IEEE Transactions on Computational Imaging, vol. 6, pp. 1139–1152, 2020