Instructions to use Darshan764/waste-classification-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Darshan764/waste-classification-v2 with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Darshan764/waste-classification-v2") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -145,3 +145,16 @@ print(f"Confidence: {pred[0][idx]*100:.2f}%")
|
|
| 145 |
## Limitations
|
| 146 |
- Trained only on the Kaggle dataset above; may not generalize to very different lighting/backgrounds.
|
| 147 |
- Not intended for production waste-sorting systems without further validation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
## Limitations
|
| 146 |
- Trained only on the Kaggle dataset above; may not generalize to very different lighting/backgrounds.
|
| 147 |
- Not intended for production waste-sorting systems without further validation.
|
| 148 |
+
## 🎮 Live Demo
|
| 149 |
+
|
| 150 |
+
Try the model in your browser (upload any waste image):
|
| 151 |
+
|
| 152 |
+
[**Waste Classification Demo**](https://waste-classification-demo-fwv65knoqoz7dgfwdsauhn.streamlit.app)
|
| 153 |
+
|
| 154 |
+
**Sample verification** — uploaded a real-world plastic water bottle image:
|
| 155 |
+
|
| 156 |
+
| Rank | Class | Confidence |
|
| 157 |
+
|------|-------|-----------|
|
| 158 |
+
| 1 | plastic_water_bottles | 92.7% |
|
| 159 |
+
| 2 | plastic_soda_bottles | 6.9% |
|
| 160 |
+
| 3 | plastic_trash_bags | 0.2% |
|