You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
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.
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.
Project Structure
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.
Dependencies
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.
To create a front-end interface for the application, run the Flask app:
python app.py
Access the app:
Open your browser and go to
http://localhost:5000 to access the application.
AWS-CICD-Deployment-with-Github-Actions
1. Login to AWS console.
2. Create IAM user for deployment
#with specific access1. EC2 access : It is virtual machine2. ECR: Elastic Container registry to save your docker image in aws#Description: About the deployment1. Build docker image of the source code2. Push your docker image to ECR3. Launch Your EC2 4. Pull Your image from ECR in EC25. Lauch your docker image in EC2#Policy:1. AmazonEC2ContainerRegistryFullAccess2. AmazonEC2FullAccess
3. Create ECR repo to store/save docker image
- Save the URI: 738400679807.dkr.ecr.ap-south-1.amazonaws.com/chicken
Pull the Docker image from the container registry to Web App server and run
About MLflow & DVC
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)
Conclusion
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.
About
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.