Coder Social home page Coder Social logo

woctezuma / playing-with-simpleitk Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 7.0 30.28 MB

Playing with SimpleITK and nnU-Net to process data from the CHAOS challenge on Google Colab.

License: MIT License

Python 27.14% Jupyter Notebook 72.86%
simpleitk nnu-net chaos colaboratory colab-notebook colab-notebooks colab colabs nn-unet nnunet

playing-with-simpleitk's Introduction

Playing with SimpleITK and nnU-Net

Build status Code coverage Code Quality

This repository contains Python code to play with SimpleITK and nnU-Net.

Requirements

  • Install Python 3.X,
  • Install the required packages:
pip install -r requirements.txt

Data

Alternatively, data can be found in Releases on Github.

Usage

Prepare data

  • Convert data from DICOM to NifTI with SimpleITK:
python convert_to_nii.py

Train nnU-Net

Training was performed with:

  • a training dataset of 5 images downsampled to 4x4x4mm,
  • no cross-validation (in which case the validation dataset is the same as the training dataset to find the best checkpoint and to decrease the learning rate).

Training for 1 epoch can require 2m30s, but up to 10m, depending on the machine which you obtained.

Results obtained after ~ 100 epochs are shown below:

Training

where:

  • training loss is in blue,
  • validation loss is in red,
  • evaluation metric (to maximize) is in green.

In terms of Dice scores, the average is:

  • 99.1% for the 5 patients of the training data,
  • 94.8% for the 15 patients of the validation data (training data not used).

References

playing-with-simpleitk's People

Contributors

renovate[bot] avatar woctezuma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

playing-with-simpleitk's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/pythonapp.yml
  • actions/checkout v4
  • actions/setup-python v5
  • codecov/codecov-action v4
pip_requirements
requirements.txt
  • SimpleITK >=1.1.0

  • Check this box to trigger a request for Renovate to run again on this repository

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

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.