Code Monkey home page Code Monkey logo

brain-tumor-segmentation's Introduction

Brain tumor segmentation using deep learning

Intro

This repository contains implementation of the UNet[1], Deep ResUnet[2] Hybrid ResUnet and ONet[3] models. We tested those models` performance with the dice metric on the brain_tumor_dataset (https://figshare.com/articles/brain_tumor_dataset/1512427).

Setup

First download the code by git clone this repo:

git clone https://github.com/galprz/brain-tumor-segemntation

Then use conda to install dependencies and setup the environment

conda end update -f environment.yml
conda activate brain-tumor-segmentation

Code structure

The src folder contains all of the implementation code.

  • utils/ contains helpers to download unzip and visualize the data.
  • datasets.py file encapsulate the brain_tumor_dataset into pytorch datasets.
  • loss.py and metrics.py contains the loss function and the dice evaluation metric correspondingly.
  • models.py contains all the model implementation
  • trainers.py contains the pytorch trainer implementation for the experiments.

Experiments

The jupyter ipynb files contain all the experiments that we ran to evaluate the models` performance on our dataset. To reproduce the results we set the seed to constant value and the dataset will be downloaded automatically if you do not have the data folder so you can just rerun those files to reproduce the results.

Referances

  1. U-Net: Convolutional Networks for Biomedical Image Segmentation(https://arxiv.org/abs/1505.04597)
  2. Road Extraction by Deep Residual U-Net (https://arxiv.org/abs/1711.10684)
  3. Hybrid ResUnet and ONet (https://github.com/galprz/brain-tumor-segemntation/blob/master/report.pdf)

brain-tumor-segmentation's People

Contributors

galprz avatar

Watchers

James Cloos avatar paper2code - bot 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.