This repository provides a complete solution for garbage classification, combining a pre-trained machine learning model with an API for easy deployment and integration.
- Loads the dataset containing images of various types of garbage (e.g., plastic, glass, metal, paper).
- Performs data augmentation and preprocessing to enhance the model's robustness.
- Utilizes the pre-trained ResNet50 model architecture, fine-tuned on the garbage classification dataset.
- Configures the model with additional layers to adapt it to the specific classification task.
- Trains the model using the processed dataset and monitors performance through accuracy and loss metrics.
- Evaluates the model's performance on a validation set to ensure generalization and avoid overfitting.
-
FastAPI Creation
-
Dockerization
-
API Deployment with Streamlit
Note: We dockerized the API just in case we used an alternate cloud service, but you can run the API directly on Streamlit!
- Download file on your local device.
- Write this prompt in your terminal:
uvicorn main:app --reload
- Write this prompt in your terminal:
streamlit run app.py
- Use the provided interface to upload your photo for classification.