- End-to-end project CNN based project, also demonstrating the MLOps practices, along with deployment.
- This project aims to classify chicken fecal samples into two categories: diseased(Coccidiosis) and healthy. The classification is based on analyzing images of the fecal samples using computer vision techniques.
https://chickenreg.azurewebsites.net/
The project follows a modular structure, consisting of several stages and pipelines which includes :-
stage_01_data_ingestion.py
: This stage is responsible for data ingestion. It includes functions for downloading, extracting, and preprocessing the dataset.stage_02_prepare_base_model.py
: In this stage, the base model for the classification task is prepared. It involves loading a pre-trained model, modifying it if necessary, and preparing it for training.stage_03_training.py
: The training stage is responsible for training the model using the prepared dataset. It includes functions for data augmentation, model training, and saving the trained model.stage_04_evaluation.py
: This stage focuses on evaluating the performance of the trained model. It includes functions for loading the trained model, performing inference on test data, and calculating evaluation metrics.
To run this project, you need the following dependencies:
- Python (version 3.8 or above)
- TensorFlow
- Flask
- DVC
Make sure you have installed the required dependencies before running the project.
- Update config.yaml
- Update secrets.yaml [Optional]
- Update params.yaml
- Update the entity # to create some return type/classes
- Update the configuration manager in src config
- Update the components
- Update the pipeline
- Update the main.py
- Update the dvc.yaml
Clone the repository
git clone https://github.com/satyamsc0/chicken-disease-classification
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Finally run the following command
python app.py
Now,
open up you local host and port
- dvc init
- dvc repro
- dvc dag
tensorboard --logdir artifacts/prepare_callbacks/tensorboard_log_dir/
EZKH5yytiVnJ3h+eI3qhhzf9q1vNwEi6+q+WGdd+ACRCZ7J
docker build -t chickenreg.azurecr.io/chicken:latest .
docker login chickenreg.azurecr.io
docker push chickenreg.azurecr.io/chicken:latest
- Build the Docker image of the Source Code
- Push the Docker image to Container Registry
- Launch the Web App Server in Azure
- Pull the Docker image from the container registry to Web App server and run
MLflow
- Its Production Grade
- Trace all of your expriements
- Logging & taging your model
DVC
- Its very lite weight for POC only
- lite weight expriements tracker
- It can perform Orchestration (Creating Pipelines)
This project demonstrates the classification of chicken fecal samples as diseased or healthy using computer vision techniques. The modular structure and the use of pipelines make it easy to follow and reproduce the workflow. The Flask app provides a user-friendly interface for interacting with the classification model.
For more details, refer to the individual implementation files and comments within the code.
Tried including some more MLOps tools like MLflow with the help of Dagshub https://dagshub.com/satyamsc0/chicken-disease