Git Product home page Git Product logo

deepfat's Introduction

DeepFat

A deep-learning-based approach to fat/water reconstruction of multi-echo gradient-echo MR images based on regional regularization.

The input of the model are patches derived from the multi-echo images.

This software requires Python, and a CUDA-enabled GPU (for patch extraction).

Description of the files

config.py

This file contains the configuration of the model: the extent of the patches and the spacing between the voxels, and helper functions for data preparation. You want to change this file to try out different paramenters. Note that the patch goes from -PATCHEXTENT to +PATCHEXTENT, that is, the actual patch size is (PATCHEXTENT+1)^2.

cudaPatches.py

GPU-based patch generation.

deepfat_preparedata.py

Executable file for the generation of the training data. The input data must be in the format:

  • images.npy : 4D complex array of the multi-echo dataset with dimensions rows-cols-slc-eco
  • WATER.npy : 3D real array representing the ground truth (water component)
  • FAT.npy : as above for the fat component

The program is called as

./deepfat_preparedata.py <path_to_directory> [1 if append]

deepfat_trainmodel.py

Trains the model on the data generated by the previous. Modify this file to specify the model. If called with a 1 as a parameter, it trains the new model from zero, otherwise it tries to continue training an existing model.

fitDataset.py

Runs the model on a new dataset.

loadMEdataset.py

Loads the dicom data into a npy array for the deepfat_preparedata.py program above. You might want to modify this as it is at the moment tailored for a custom MR sequence.

Acknowledgments

This project was supported by the SNF (grant number 320030_172876)

Written with StackEdit.

deepfat's People

Contributors

fsantini avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.