Skip to content

toan-ly/Liver-Segmentation-PyTorch-Monai

Repository files navigation

Liver Segmentation Using PyTorch and Monai

This project focuses on segmenting the liver from medical images using a 3D UNet implemented with PyTorch and MONAI. The model is trained and evaluated on the dataset from the Meddical Segmentation Decathlon.

Table of Contents

Introduction

Medical image segmentation is a critical task in healthcare, aiding in diagnostics and treatment planning. This project leverages the power of deep learning to accurately segment the liver from 3D medical images.

Installation

Prerequisites

  • Python 3.8+
  • CUDA-compatible GPU for acceleration (optional but recommended)

Install Dependencies

pip install -r requirements.txt
pip install monai

Requirements File

matplotlib
numpy
tqdm
glob2
dicom2nifti
pytest-shutil
nibabel

Training

model = UNet(
    dimensions=3,
    in_channels=1,
    out_channels=2,
    channels=(16, 32, 64, 128, 256), 
    strides=(2, 2, 2, 2),
    num_res_units=2,
    norm=Norm.BATCH,
).to(device)

Demo

image image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published