Garbage Image Detection Model
This repository contains a YOLO-based deep learning model trained to classify garbage images. The model outputs a confidence level bar chart of predicted image.
π Model Overview
- Model: YOLO-based image classifier
- Task: Garbage classification
- Output: Confidence bar chart with a single predicted class
- Framework: Ultralytics YOLO
- Dataset: https://www.kaggle.com/datasets/farzadnekouei/trash-type-image-dataset
π₯ Download the Model
You can download the trained model (best.pt) using:
wget -O best.pt 'https://huggingface.co/diazprasetyo/garbage_classification/blob/main/best.pt'
Alternatively, you can load it directly in Python:
from ultralytics import YOLO
model = YOLO('best.pt')
π How to Use
1οΈβ£ Install Dependencies
pip install ultralytics streamlit plotly pillow
2οΈβ£ Run the Streamlit App
streamlit run app.py
3οΈβ£ Upload an Image
- The app allows you to upload an image of garbage.
- The model predicts the type of garbage and displays a confidence level bar chart.
π License
This model is licensed under the MIT License. See LICENSE for details.
π’ Citation
If you use this model, please cite:
@misc{diazprasetyo2025,
title={Garbage Image Detection Model},
author={Diaz Prasetyo},
year={2025},
url={https://huggingface.co/diazprasetyo/garbage_classification}
}
π€ Contributing
Feel free to open issues or pull requests to improve this model and its documentation.
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support