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")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("watersplash/waste-classification") model = AutoModelForImageClassification.from_pretrained("watersplash/waste-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,382 Bytes
a63da48 7b9b7e4 a63da48 e366e87 a63da48 62b62ed a63da48 62b62ed a63da48 62b62ed a63da48 7b9b7e4 a63da48 62b62ed a63da48 62b62ed a63da48 62b62ed 1aa9ba0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | ---
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
|