Downloads · 30 days
0
SriramRokkam/wastewise-garbage-cls
wastewise-garbage-cls is a image classification model from SriramRokkam. Use it when you need a label for an image. The card lists the license as apache-2.0.
Fine-tuned YOLOv8n-cls model for waste segregation at office/public kiosks.
Downloads · 30 days
0
Access
Public
Updated May 2, 2026
Repo size
5.8 MB
Likes
0
Public
Click a slice to open those files.
.onnx11.6 MB · 100%
From the Hugging Face model README
Fine-tuned YOLOv8n-cls model for waste segregation at office/public kiosks.
| Field | Value |
|---|---|
| Architecture | YOLOv8n-cls (classification head) |
| Input | RGB 224x224, normalized to [0,1] |
| Output | 8-class softmax probabilities |
| Format | ONNX (opset 17) |
| Size | ~5.5 MB |
| Accuracy | 94.4% top-1 on validation set |
| Dataset | garbage_office (8 classes, custom) |
| Index | Class |
|---|---|
| 0 | battery |
| 1 | biological |
| 2 | cardboard |
| 3 | glass |
| 4 | metal |
| 5 | paper |
| 6 | plastic |
| 7 | trash |
import numpy as np
from PIL import Image
import onnxruntime as ort
session = ort.InferenceSession("wastewise-yolo.onnx")
img = Image.open("test.jpg").convert("RGB").resize((224, 224))
arr = np.array(img, dtype=np.float32) / 255.0
tensor = arr.transpose(2, 0, 1)[np.newaxis] # [1, 3, 224, 224]
outputs = session.run(None, {session.get_inputs()[0].name: tensor})
scores = outputs[0][0]
class_id = int(np.argmax(scores))
CLASS_NAMES = ["battery","biological","cardboard","glass","metal","paper","plastic","trash"]
print(f"Predicted: {CLASS_NAMES[class_id]} ({scores[class_id]:.1%})")
This model powers WasteWise - an AI-powered waste segregation kiosk built on SAP BTP.