A deep learning project for brain tumor segmentation from MRI images using the U-Net architecture. This repository includes data preprocessing, model training, evaluation, and inference scripts.
- U-Net implementation in PyTorch
- MRI image preprocessing
- Automatic dataset splitting
- Model training and validation
- Dice Score and IoU evaluation
- Model checkpoint saving
- Inference on new MRI images
- Python 3.11
- PyTorch
- NumPy
- OpenCV
- Albumentations
- Matplotlib
- scikit-learn
This project is designed for brain MRI segmentation datasets such as:
- BraTS 2021
- BraTS 2023
Download the dataset from the official BraTS website.
Clone the repository
git clone https://github.com/yourusername/your-repository.git
cd your-repositoryInstall dependencies
pip install -r requirements.txtpython preprocess.pypython train.pypython evaluate.pypython inference.py- Dice Score
- Intersection over Union (IoU)
- Loss Curve
| MRI Image | Ground Truth | Prediction |
|---|---|---|
| Coming Soon | Coming Soon | Coming Soon |
- Python 3.11+
- PyTorch
- CUDA (Optional)
Install:
pip install -r requirements.txtContributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
Md. Arafat Hossain
GitHub: https://github.com/Arafat-shuvo
If you find this project useful, please ⭐ the repository.