Skip to content

Deep-Learning-Project-FastMRI/fastMRI_deep_learning

Repository files navigation

fastMRI deep learning

The field of MRI reconstruction has previously utilized deep learning techniques to produce high-quality MRI images from raw MRI data, reducing the amount of time to produce an MRI image. These reconstruction techniques optimize for the entire image at once, however, for medical professionals, the MRI reconstruction must have a high quality in diagnostically relevant regions. Therefore, our work introduces methods for improving region-specific MRI reconstruction for diagnostic quality. These changes ensure that the diagnostically relevant regions of interest have greater importance and quality during MRI reconstruction.

Experiment results:

Available at the following link: https://wandb.ai/ebruda01-georgia-institute-of-technology/deep_learning_fastmri_project/table?nw=nwuserebruda01

Based on

LICENSE Build and Test

Website | Dataset | GitHub | Publications

fastMRI is a collaborative research project from Facebook AI Research (FAIR) and NYU Langone Health to investigate the use of AI to make MRI scans faster. NYU Langone Health has released fully anonymized knee and brain MRI datasets that can be downloaded from the fastMRI dataset page. Publications associated with the fastMRI project can be found at the end of this README.

The fastMRI Dataset

There are multiple publications describing different subcomponents of the data (e.g., brain vs. knee) and associated baselines. All of the fastMRI data can be downloaded from the fastMRI dataset page.

Running the project

Pace Access

Conda setup

  • If you haven’t set up conda before for your PACE account follow the steps below. If not, skip to step #2
  • Link to your conda environment to your scratch folder. This is important since the packages take up so much space
  • Setup the environment for this project
    • Create the conda environment by running conda env create -f dl_environment.yml
    • Activate the environment
    • If you haven’t done this yet, run pip install -e .
      • This installs the fastmri project

File Setup

  • Clone the following Github repo and put it in your scratch folder (ex: ebruda3/scratch) https://github.com/Deep-Learning-Project-FastMRI/fastMRI_deep_learning
    • Make sure you clone so you can do a git push later
  • Sign up to download the dataset files from NYU https://datacatalog.med.nyu.edu/dataset/10389
  • Download the dataset zip files by running the curl commands from the NYU instructions
  • (Optional) subsample_files.py to subsample the training, validation, and test data depending on available storage
  • Put all of the files in a data folder. Ex: ebruda3/scratch/fastmri_deep_learning/data/{train/val/test}

Training the model

  • cd into fastmri_deep_learning/fastmri_examples/unet/
  • Activate the dl_proj_2 conda environment
  • Change the knee_path in the fastmri_dirs.yaml file to be wherever your data is saved
    • Ex: knee_path: "/home/hice1/ebruda3/scratch/fastMRI_deep_learning/data/"
  • Start training the model by running python train_unet_demo.py

For benchmark Train, Test, Val

  • python train_unet_demo.py --experiment_mode=benchmark --mode=train
  • python train_unet_demo.py --experiment_mode=benchmark --mode=test
  • python train_unet_demo.py --experiment_mode=benchmark --mode=val

For manual Train, Test, Val

  • python train_unet_demo.py --experiment_mode=manual --mode=train
  • python train_unet_demo.py --experiment_mode=manual --mode=test
  • python train_unet_demo.py --experiment_mode=manual --mode=val

For heatmap Train, Test, Val

  • python train_unet_demo.py --experiment_mode=heatmap --mode=train
  • python train_unet_demo.py --experiment_mode=heatmap --mode=test
  • python train_unet_demo.py --experiment_mode=heatmap --mode=val

For Attention train, Test, Val

  • python train_unet_demo.py --experiment_mode=attention --mode=train
  • python train_unet_demo.py --experiment_mode=attention --mode=test
  • python train_unet_demo.py --experiment_mode=attention --mode=val

Running any command in the background

  • nohup python -u train_unet_demo.py --mode "MODE" --experiment_mode "EXPERIMENT" > "LOG_FILE_NAME".log 2>&1 &

License

fastMRI is MIT licensed, as found in the LICENSE file.

References:

@misc{zbontar2018fastMRI,
    title={{fastMRI}: An Open Dataset and Benchmarks for Accelerated {MRI}},
    author={Jure Zbontar and Florian Knoll and Anuroop Sriram and Tullie Murrell and Zhengnan Huang and Matthew J. Muckley and Aaron Defazio and Ruben Stern and Patricia Johnson and Mary Bruno and Marc Parente and Krzysztof J. Geras and Joe Katsnelson and Hersh Chandarana and Zizhao Zhang and Michal Drozdzal and Adriana Romero and Michael Rabbat and Pascal Vincent and Nafissa Yakubova and James Pinkerton and Duo Wang and Erich Owens and C. Lawrence Zitnick and Michael P. Recht and Daniel K. Sodickson and Yvonne W. Lui},
    journal = {ArXiv e-prints},
    archivePrefix = "arXiv",
    eprint = {1811.08839},
    year={2018}
}

About

A large-scale dataset of both raw MRI measurements and clinical MRI images.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors