Skip to content

Latest commit

 

History

History
53 lines (28 loc) · 941 Bytes

README.md

File metadata and controls

53 lines (28 loc) · 941 Bytes

dwi_angular

PyTorch implementation of the paper "Super-Resolved q-Space Deep Learning" (MICCAI 2019, MedIA 2021)

Dependencies

  • Pytorch
  • numpy
  • nibabel
  • sklearn_extra

Usage

  1. Clone the repository
  • git clone https://github.com/Snailpong/dwi_angular.git
  1. Dataset download
  • Download from Human Connectome Project (HCP) Young Adult Database

  • Download data.nii.gz, nodif_brain_mask.nii.gz, bval, bvec files for each subject

  1. Preprocess data
  • python vector_scatter.py: select index for extracting LR dimension (diffusion)

  • python preprocess.py: make h5 file for training and testing

  1. Train
  • python train.py

  • arguments

    • load_model: True/False

    • cuda_visible: CUDA_VISIBLE_DEVICES (e.g. 1)

    • batch_size: set batch size

  1. Test
  • python test.py

  • arguments

    • load_model: True/False

    • cuda_visible: CUDA_VISIBLE_DEVICES (e.g. 1)

    • image_path: set validation path