Skip to content

A PyTorch based Convolutional Neural Network that classifies brain MRI scans into four tumor categories.

Notifications You must be signed in to change notification settings

CalebMulugeta-ui/Brain-Tumor-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Brain Tumor Classification with PyTorch (CNN)

This project implements a Convolutional Neural Network in PyTorch to classify brain tumor types from MRI scans.


๐Ÿง  Project Overview

The goal of this project is to build and train a CNN capable of classifying MRI brain images into four tumor categories. The model uses PyTorchโ€™s deep learning framework, trained on a Kaggle brain tumor MRI dataset, and achieves strong accuracy on unseen test data.


๐Ÿ“‚ Features

  • End-to-end PyTorch workflow
  • Image preprocessing using torchvision.transforms
  • Custom CNN architecture with Convolution, ReLU, MaxPooling, Flatten, and Linear layers
  • Training loop with forward/backward pass + parameter optimization
  • Model evaluation with accuracy calculation
  • Visualization of predictions on random images
  • Achieves ~96% test accuracy

๐Ÿ› ๏ธ Technologies Used

  • Python
  • PyTorch
  • Torchvision
  • Matplotlib
  • Jupyter Lab / Notebook

๐Ÿ“ฆ Requirements

You will need:

  • Python 3.x
  • PyTorch + Torchvision
  • Matplotlib
  • Jupyter Lab / Notebook

Install everything with:

pip install torch torchvision matplotlib jupyterlab

๐Ÿค Acknowledgments

This project is based on the concepts taught in the YouTube tutorial. All dataset credit belongs to the original Kaggle contributors.

About

A PyTorch based Convolutional Neural Network that classifies brain MRI scans into four tumor categories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published