Git Product home page Git Product logo

mercure-monaisegment's Introduction

mercure-monaisegment

MONAI Segment is a mercure module for rapid deployment of segmentation models hosted in the MONAI model zoo.

This module is available as a docker image that can be added to an existing mercure installation using docker tag : mercureimaging/mercure-monaisegment. It will perform segmentation of the spleen in CT images using the Spleen ct segmentation MONAI bundle. The code was adapted from the MONAI Deploy bundle app tutorial.

The code can be simply modified to rapidly deploy other segmentation models in the MONAI model zoo.


Installation

Add module to existing mercure installation

Follow instructions on mercure website on how to add a new module. Use the docker tag mercureimaging/mercure-monaisegment.


Install new mercure test environment and deploy module

Install virtual box and vagrant and follow jupyter notebook tutorial tutorial_mercure-MonaiSegment.ipynb (less than 1hr to complete).


Build module for local testing, modification and development

  1. Clone repo.
  2. Build Docker container locally by running make (modify makefile with new docker tag as needed).
  3. Test container :
    docker run -it -v /input_data:/input -v /output_data:/output --env MERCURE_IN_DIR=/input --env MERCURE_OUT_DIR=/output *docker-tag*

Output

Segmentations are written to specified output directory in the following formats :

  • DICOM SEG
  • DICOM RGB masks (segmentations overlaid on background images)




Notes

  • Default model 'spleen_ct_segmentation' bundle included in Dockerfile settings.
  • To select a different model, set MONAI_BUNDLE_URL to MONAI Model Zoo bundle link address.
  • Current requirements:
    • MONAI bundle must support torchscript i.e. include model.ts file
    • MONAI bundle must conform to spec.
    • MONAI bundle must contain a segmentation model
    • May require further preprocessing or transform operators prior to inference to function correctly.

mercure-monaisegment's People

Contributors

jmsocallaghan avatar chrstphmr avatar tblock79 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.