Code Monkey home page Code Monkey logo

plgg_segmentation_docker's Introduction

Docker pLGG_Segmentation

Main repo: https://github.com/AIM-KannLab/pLGG_Segmentation

Prerequisites:

How to run the docker image inference on single MRI T2w image

  1. Put all images in the 'example_input' folder
  2. Build the docker image: sudo docker build -t segmentation . Note: this will take a while to build the docker image
  3. Run the docker image: sudo docker run -i --gpus=all --ipc=host -v ${PWD}/output:/output/preprocessed -t segmentation Note: this will take a while to run the docker image, depending on how many images you have in the 'example_input' folder/ how many GPUs you have. Your output will be in the 'preprocessed' folder.

!To pass parameters to docker(modify input/output paths), when running the docker image, use the following command: sudo docker run -i --gpus=all --ipc=host -v ${PWD}/output:./output/ -t segmentation --CUDA_VISIBLE_DEVICES=0 --T2W_dir /example_input --output_path /output/

Optional: to clean dockers sudo docker image prune -a or docker image prune -a --filter "until=24h" or docker system prune

Dataset

Example dataset (note, this is not the example MRI with brain tumor; this is just a sample dataset to test the pipeline): https://openneuro.org/datasets/ds000228/versions/1.1.0 To run on your own data, place T2w .nii.gz files in the 'example_input' folder.

plgg_segmentation_docker's People

Stargazers

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