Welcome to Neuroslice

Neuroslice is a Python package for brain tumor segmentation using the YOLOv11m model on MRI FLAIR data.

Overview

Neuroslice provides automated brain tumor bounding box detection using pre-trained YOLO models. It processes FLAIR MRI images slice-wise and supports three slice orientations (coronal, sagittal, and axial). Models are automatically downloaded from Hugging Face when first used.

Quick Start

Install via pip:

pip install neuroslice

Basic usage:

neuroslice input.nii.gz output_mask.nii.gz --axis 0 --mode --verbose

Warning

Only use FLAIR sequences as the model was trained only on FLAIR data.

Table of contents

Additional Information