Skip to content

Deep Learning-based Brain Tumor Segmentation Using MRI. This project implements a 2D U-Net model to perform brain tumor segmentation on MRI scans using a subset of the BraTS 2016–2017 dataset. The model is trained on volumetric MRI slices with corresponding segmentation masks.

Notifications You must be signed in to change notification settings

Fazil-kagdi/Brain-Tumour-Segmentation

Repository files navigation

🚀 Getting Started

Step 1: Install Dependencies

Install all required libraries using pip:

pip install numpy nibabel tensorflow matplotlib scikit-learn torch medpy monai segmentation-models-pytorch tqdm

Make sure you're using a Python environment with access to GPU (recommended) and Python 3.8+.

Step 2: Downloads

🧠 Dataset

Download the Brain Tumor Segmentation dataset (BraTS subset) from the link below:

📁 Download Task01_BrainTumour (Google Drive)

After downloading:

  • Place the folder Task01_BrainTumour directly into your project root (or wherever your notebook expects them).

🧮 Pretrained Model Weights

Download the pretrained model weights here:

💾 Download model_weights.pth (Google Drive)

After downloading:

  • Place model_weights.pth in the same directory as your notebook or in a weights/ folder if your code expects that.

Step 3: Run the Notebook

Open the Jupyter notebook and run all the cells sequentially.

If you want to train from scratch, simply run all cells in order.

If you want to use the pretrained model directly:

Run all cells up to the one marked "1st stage training".

Then skip to the "Data Visualization" cell and run from there to visualize the segmentation results.

About

Deep Learning-based Brain Tumor Segmentation Using MRI. This project implements a 2D U-Net model to perform brain tumor segmentation on MRI scans using a subset of the BraTS 2016–2017 dataset. The model is trained on volumetric MRI slices with corresponding segmentation masks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published