Skip to content

Snailpong/dwi_angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages