This project aims to develop a machine learning model to classify kidney images as either tumor or normal. Early and accurate classification is crucial for the effective treatment of kidney diseases.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/AbQaadir/Kidney-Disease-Classification.git cd kidney-tumor-classification
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Data Ingestion:
python src/KDC/pipeline/step_01_data_ingestion.py
-
Prepare Base Model:
python src/KDC/pipeline/step_02_prepare_base_model.py
-
Model Training:
python src/KDC/pipeline/step_03_model_training.py
-
Model Evaluation:
python src/KDC/pipeline/step_04_model_evaluation.py
To run the entire pipeline from data preprocessing to model evaluation, use the following command:
python main.py
We use Data Version Control (DVC) for experiment management. To reproduce experiments, run:
dvc repro
For detailed experiment tracking, See the DagsHub Repo (mlflow)
https://dagshub.com/AbQaadir/Kidney-Disease-Classification
-
Ensure that you have all necessary data files in the correct directories before running the pipelines.
-
If you encounter any issues, please refer to the
logs/
directory for detailed logs of each pipeline step.