A deep learning tool that detects and classifies brain tumors in MRI scans using a convolutional neural network (CNN).
This project provides a complete MRI brain tumor classification system. Upload an image, and the model will tell you if there's a tumor and what kind.
The classifier predicts one of four possible categories:
- No Tumor
- Glioma
- Meningioma
- Pituitary Tumor
- Train Accuracy: 99%
- Test Accuracy: 95%
Brain-Tumor-Classifier/
├── model.py # CNN model definition
├── train.py # Model training script
├── eval.py # GUI and evaluation code
├── dataset.py # Dataset loader
├── brain_tumor_cnn.pth # Trained weights
└── data/ # MRI Data)
-
Install dependencies:
pip install -r requirements.txt
-
Run the GUI app:
python eval.py
-
Usage:
- Click "Load MRI Image" and select your scan
- Click "Classify Image" to see the prediction and confidence
- Click "Clear" to upload another image

