Instructions to use watersplash/waste-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use watersplash/waste-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="watersplash/waste-classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("watersplash/waste-classification") model = AutoModelForImageClassification.from_pretrained("watersplash/waste-classification") - Notebooks
- Google Colab
- Kaggle
| library_name: transformers | |
| metrics: | |
| - accuracy | |
| # Model Card for Model ID | |
| <!-- Provide a quick summary of what the model is/does. --> | |
| An Image Classifier model fine-tuned on ViT. This model can classify garbage images. | |
| ## Model Details | |
| ### Model Description | |
| <!-- Provide a longer summary of what this model is. --> | |
| - **Finetuned from model :** ViT | |
| ### Model Sources [optional] | |
| <!-- Provide the basic links for the model. --> | |
| - **Repository:** https://github.com/KomaliValluru/waste-classification | |
| ## Uses | |
| <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> | |
| - Target classes: Battery, Biological, Brown-grass, Cardboard, Clothes, Green-Glass, Metal, Paper, Plastic, Shoes, Trash, White-Glass | |
| ## Training Details | |
| ### Training Data | |
| <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. --> | |
| https://www.kaggle.com/datasets/mostafaabla/garbage-classification | |
| #### Metrics | |
| <!-- These are the evaluation metrics being used, ideally with a description of why. --> | |
| Accuracy | |
| ### Results | |
| Accuracy: 98% | |
| #### Summary | |
| - **Hours used:** 1 hour 30 minutes | |
| - **References:** Based on the model yangy50/garbage-classification | |