Git Product home page Git Product logo

niftytorchprep's Introduction

niftytorchprep

BIDS to NiftyTorch: data preparation for deep learning.

How it works?

niftytorchprep command-line interface tool helps you prepare your data for niftytorch training. It check if BIDS format of your data is correct and transforms it into the format that is coherent with deep learning models training.

Install

pip install git+https://github.com/NiftyTorch/ohbm-hackthon2020.git

Or download this repository and call:

python setup.py install

Interface

$ niftytorchprep --help  
Usage: niftytorchprep [OPTIONS] COMMAND [ARGS]...

  NIFTYTORCHPREP helps to get your data ready for *niftytorch* training. You
  can browse through your options below. Each one has respective help
  function.

Options:
  --help  Show this message and exit.

Commands:
  bids-files       Print types of files and their number per folder.
  bids-totraining  Takes data from BIDS_DIR and organises it in a training...
  bids-validate    Basic BIDS verification.
  qc-anat          Runs Quality Control (T1) from visualqc package and...
  qc-func          Runs Quality Control (Functional) from visualqc package...
  qc-getvisualqc   Installs visualqc from PIP.

Here is an example that splits the data from various participants in BIDS format among: training, test and validation folders:

niftytorchprep bids-totraining my_bids_data/ my_output_to_dl/ gender --test 0.2 --val 0.1

To get help for a specific option, call for example:

niftytorchprep bids-totraining --help

See it in action:

nitrytorchprep demo

Contributors

Dominik Krzemiński @dokato
Cardiff University Brain Research Imaging Centre

Sara Morsy @SaraMorsy
Faculty of Medicine, Tanta University, Egypt

Kaori Lily Ito @kaoriito
Neural Plasticity & Neurorehabilitaiton Laboratory, University of Southern California

History

This project has been initiated at OHBM Hackthon 2020.

niftytorchprep's People

Contributors

dokato avatar niftytorch avatar kaoriito 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.