Are you sure you want to delete this access key?
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
This repository contains the code and configuration files for a Brain Tumor Detection MLOps project. The project includes data versioning, data pipelines, and Docker for containerization.
Brain tumors are a significant health challenge, with approximately 24,810 adults in the United States diagnosed in 2023. The complexity and variability of brain tumors make accurate diagnosis difficult, especially in regions lacking skilled medical professionals. This project leverages machine learning to develop an end-to-end ML pipeline for automated brain tumor detection, aiming to provide scalable, reliable, and timely diagnostic support.
The dataset combines MRI images from three sources: figshare, SARTAJ, and Br35H. It includes 7023 JPEG images of human brains, categorized into four classes: glioma, meningioma, no tumor, and pituitary.
All data used are sourced from publicly available datasets with proper usage permissions.
Before you begin, ensure you have the following installed on your machine:
To get started with the project, follow these steps:
Clone the repository using the following command:
git clone https://github.com/Omii2899/Brain-Tumor-Classification.git
cd Brain-Tumor-Detection
Create a virtual environment to manage project dependencies:
pip install virtualenv
python -m venv <virtual_environment_name>
source <virtual_environment_name>/bin/activate
Install the necessary dependencies using the requirements.txt file:
pip install -r requirements.txt
Pull the data from the remote source using DVC:
dvc pull
You need to add the key file in src/keys folder. For security purposes, we have not included this file. To obtain this file, please contact Aadarsh
├── .dvc
│ ├── config
│ ├── .gitignore
├── data
│ ├── Testing
│ │ ├── ...
│ ├── Training
│ │ ├── ...
├── src
│ │
│ ├── dags
│ │ ├── scripts
│ │ ├── logger.py
│ │ ├── preprocessing.py
│ │ ├── statistics.py
│ │ ├── datapipeline.py
│ └── keys
│ │ ├── keyfile.json
├── .dvcignore
├── .gitignore
├── data.dvc
├── dockerfile
├── entrypoint.sh
├── requirements.txt
ImageDataGenerator
. It contains two primary functions: preprocessing_for_training
that applies various augmentation techniques, such as normalization, rotation, width and height shifts, shearing, zooming, and horizontal flipping, to enhance the training datasetand and preprocessing_for_testing_inference
for normalizing the data.To run the pipeline, you can use Docker for containerization.
docker build -t image-name:tag-name .
docker images
docker run -it --rm -p 8080:8080 image-name:tag-name
The application should now be running and accessible at http://localhost:8080
.
Use the below credentials-
User: mlopsproject
Password: admin
Note:
If the commands fail to execute, ensure that virtualization is enabled in your BIOS settings. Additionally, if you encounter permission-related issues, try executing the commands by prefixing them with sudo
.
python src/dags/datapipeline.py
Aadrash Siddha
Akshita Singh
Praneith Ranganath
Shaun Kirtan
Yashasvi Sharma
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?