GithubHelp home page GithubHelp logo

shiontao / mrbrains18 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hucanpei/mrbrains18

0.0 0.0 0.0 2.83 MB

This code is written to participate in the MRBrainS18 competition.

Python 95.79% Dockerfile 0.30% Shell 0.87% TeX 3.05%

mrbrains18's Introduction

MRBrainS18

This code is written to participate in the MRBrainS18 competition.

The method we use comes from this paper: From neonatal to adult brain mr image segmentation in a few seconds using 3d-like fully convolutional network and transfer learning

Preprocess:

1)histogram equalization(only for T1);

2)stack 3 continue slices as a RGB image;

3)flip and rotate for [$0,\pm 5,\pm 10,\pm 15$] for data augmentation;

4)crop to reduce background in image and ensure width and height can be devided by 16;

preprocess

Network

Simply pass image in 3 modalities through 3 streams of VGG, and concat them in every stage.

pipeline

Run

python ./train.py --gpu_id=0 --data_path='path' --val_num=1 

The meaning of this line of code is running this code with GPU 0 and validating with sample 1.

Code explanation

Main file is 'train.py', includes train and validation process.

folder 'data_loader' includes preprocess code and dataloader.

folder 'models' includes some networks.

'loss.py' defines sone loss functions.

'metrics.py' computes dice coefficients.

'validate.py' generates '.nii.gz' file for validation set.

'test.py' is an independent file to generate '.nii.gz' file for test sample.

folder 'fig_out' storages visualized results and train curve, in png foramt.

'evaluation.py' is modified from official code to compute metrics.

folder 'evaluation' storages output '.nii.gz' and label '.nii.gz' for computing metrics.

folder 'docker' is used to containerize test code.

folder 'documents' contains poster,slides,description and results for extension of icip paper.

Visualization

visualization

mrbrains18's People

Contributors

hucanpei 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.