Giter Site home page Giter Site logo

kundan1974 / rootpainter3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abe404/rootpainter3d

0.0 0.0 0.0 956 KB

RootPainter3D: Interactive-machine-learning enables rapid and accurate contouring for radiotherapy

License: GNU General Public License v3.0

Python 98.68% NSIS 1.32%

rootpainter3d's Introduction

RootPainter3D

This software is not approved for clinical use. Also please See LICENSE file.

Described in the paper "RootPainter3D: Interactive-machine-learning enables rapid and accurate contouring for radiotherapy"

Currently available at: https://arxiv.org/pdf/2106.11942.pdf

And now a published version is available at: http://doi.org/10.1002/mp.15353

Server setup

For the next steps I assume you have a suitable GPU and CUDA installed. A recent version of python 3 is required.

  1. Clone the RootPainter3D code from the repository and then cd into the trainer directory (the server component).
git clone https://github.com/Abe404/RootPainter3D.git
cd RootPainter3D/trainer
  1. To avoid alterating global packages. I suggest using a virtual environment. Create a virtual environment
python -m venv env

And then activate it.

On linux:

source ./env/bin/activate

On windows:

env\Scripts\activate.bat
  1. Install PyTorch using pip by following the instructions at the pytorch website

  2. Install the other dependencies in the virtual environment

pip install -r requirements.txt
  1. Run root painter. This will first create the sync directory.
python main.py

You will be prompted to input a location for the sync directory. This is the folder where files, including instructions are shared between the client and server. I will use ~/root_painter_sync

The RootPainter3D server will then create some folders inside ~/root_painter_sync and start watching for instructions from the client.

You should now be able to see the folders created by RootPainter (datasets, instructions and projects) inside ~/root_painter_sync on your local machine.

Client setup

  1. Clone the RootPainter3D code from the repository and then cd into the painter directory (the client component).
git clone https://github.com/Abe404/RootPainter3D.git
cd RootPainter3D/painter
  1. To avoid alterating global packages. I suggest using a virtual environment. Create a virtual environment
python -m venv env

And then activate it.

On linux:

source ./env/bin/activate

On windows:

env\Scripts\activate.bat
  1. Install the other dependencies in the virtual environment
pip install -r requirements.txt
  1. Run the client.
fbs run

To interactively train a model and annotate images, you will need to add a set of compressed nifty images (.nii.gz) to a folder in the datasets folder and then create a project using the client that references this dataset.

For more details see the paper: Pre-print vailable at: https://arxiv.org/pdf/2106.11942.pdf And now a published version is available at: http://doi.org/10.1002/mp.15353

rootpainter3d's People

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.