Skip to content

valohai/NVIDIA-MONAI-Valohai

Repository files navigation

MONAI Training Pipeline

This repository contains a complete pipeline for training a UNet model for liver segmentation using the MONAI Task03_Liver dataset, orchestrated with Valohai.

Overview

This project demonstrates how to:

  1. Download and preprocess the Task03_Liver dataset
  2. Train a UNet model using MONAI
  3. Evaluate model performance using Dice Score
  4. Run inference on unseen data

Project Structure

  • preprocess.py: Downloads and preprocesses the Task03_Liver data
  • train.py: Trains the UNet model using MONAI
  • evaluate.py: Evaluates model performance on the test set
  • inference.py: Performs segmentation inference on new images
  • valohai.yaml: Defines the Valohai pipeline and execution steps
  • requirements.txt: Core Python dependencies

Pipeline Steps

image

This pipeline automates the full workflow for medical image segmentation using a U-Net architecture on the Task03_Liver dataset from the Medical Segmentation Decathlon.

1. Preprocess Dataset

2. Train Model

  • Trains a configurable U-Net model on the preprocessed dataset.

  • Supports custom settings for:

    • Number of epochs
    • Learning rate
    • Batch size
    • Input/output channels
    • Number of residual units
    • Channel depth at each stage

3. Evaluate Model

  • Evaluates model performance using metrics such as:

    • Dice Similarity Coefficient (DSC)
    • Intersection over Union (IoU)
  • Produces detailed logs and segmentation quality visualizations.

4. Run Inference

Run the pipeline

vh pipeline run train_and_evaluate

Dataset

This project uses the Task03_Liver dataset from the Medical Segmentation Decathlon. The dataset contains CT volumes of the liver with manual segmentation masks.

Model

The training pipeline uses the UNet architecture implemented in MONAI, optimized for medical image segmentation tasks.

License

This project leverages the MONAI framework and uses datasets from the Medical Segmentation Decathlon. It is distributed under the Apache License 2.0.

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages