GithubHelp home page GithubHelp logo

ramyh / run-vnet-keras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soymintc/run-vnet-keras

0.0 1.0 0.0 45 KB

Bash and python scripts to run a keras-implemented V-Net 3D segmentation model.

License: Apache License 2.0

Shell 1.12% Python 98.88%

run-vnet-keras's Introduction

V-Net running script, implemented with keras

Install the necessary packages as follows:
pip3 install -r requirements.txt

Key features:

  • Implemented a modified V-Net [https://arxiv.org/abs/1606.04797]
  • Use on-the-fly data augmentation (translate, zoom, shear, flip, and rotate)
  • Uses group normalization (default group size 8)

Help:

usage: run_vnet3d.py [-h] --core_tag CORE_TAG --nii_dir NII_DIR --batch_size
                     BATCH_SIZE --image_size IMAGE_SIZE --learning_rate
                     LEARNING_RATE --group_size GROUP_SIZE --f_root F_ROOT
                     --n_validation N_VALIDATION --n_test N_TEST --optimizer
                     OPTIMIZER [--print_summary_only]

Script to run UNet3D

optional arguments:
  -h, --help            show this help message and exit
  --core_tag CORE_TAG, -ct CORE_TAG
  --nii_dir NII_DIR, -I NII_DIR
  --batch_size BATCH_SIZE, -bs BATCH_SIZE
  --image_size IMAGE_SIZE, -is IMAGE_SIZE
  --learning_rate LEARNING_RATE, -lr LEARNING_RATE
  --group_size GROUP_SIZE, -gs GROUP_SIZE
  --f_root F_ROOT, -fr F_ROOT
  --n_validation N_VALIDATION
  --n_test N_TEST
  --optimizer OPTIMIZER, -op OPTIMIZER
  --print_summary_only

Here, --nii_dir should have only nii.gz files within it.
Each sample in the --nii_dir should have the following 5 suffices:

  • _flair.nii.gz
  • _t1.nii.gz
  • _t1ce.nii.gz
  • _t2.nii.gz
  • _seg.nii.gz (label)
    Here, the label file with _seg.nii.gz should have only 0, 1, 2, 4 as its value, which corresponds to the BraTS 2018 brain tumor segmentation data [https://www.med.upenn.edu/sbia/brats2018/data.html].

run-vnet-keras's People

Contributors

soymintc avatar

Watchers

 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.