Downloads · 30 days
24
33% of all-time downloads
SabaTariq510/waste-classification-models
waste-classification-models is a image classification model from SabaTariq510. Use it when you need a label for an image. It is set up for keras. The card lists the license as mit.
Is repository mein 2 trained models hain jo waste (kachra) images ko classify karne ke liye use hote hain. Dono models ek Flask/Gradio app mein integrate kiye gaye hain jahan user apni marzi se koi bhi ek model select…
Downloads · 30 days
24
33% of all-time downloads
All-time downloads
72
Public
Repo size
20.2 MB
Likes
0
Public
Click a slice to open those files.
.keras14 MB · 69%
From the Hugging Face model README
Is repository mein 2 trained models hain jo waste (kachra) images ko classify karne ke liye use hote hain. Dono models ek Flask/Gradio app mein integrate kiye gaye hain jahan user apni marzi se koi bhi ek model select kar sakta hai.
best_mobilenet.keras — MobileNetV2 (Image Classification)Ye model poori image ko dekh kar batata hai ke image mein sabse zyada kis waste category ka material hai. Har class ke liye ek confidence score bhi milta hai.
bestyolomodel.pt — YOLOv8 (Object Detection)Ye model image ke andar waste object ko detect karta hai aur uske around bounding box + class + confidence deta hai. MobileNet ke muqable ye batata hai ke object kahan hai, sirf ye nahi ke image mein kya hai.
Dono models ke output ko is mapping ke zariye Recyclable / Non-Recyclable mein convert kiya jata hai:
| Class | Status |
|---|---|
| cardboard | Recyclable |
| glass | Recyclable |
| metal | Recyclable |
| paper | Recyclable |
| plastic | Recyclable |
| trash | Non-Recyclable |
from huggingface_hub import hf_hub_download
from tensorflow.keras.models import load_model
from ultralytics import YOLO
REPO_ID = "SabaTariq510/waste-classification-models"
# MobileNetV2
mobilenet_path = hf_hub_download(repo_id=REPO_ID, filename="best_mobilenet.keras")
mobilenet_model = load_model(mobilenet_path)
# YOLOv8
yolo_path = hf_hub_download(repo_id=REPO_ID, filename="bestyolomodel.pt")
yolo_model = YOLO(yolo_path, task="detect")
Ye models ek Gradio app mein deploy kiye gaye hain jahan user image upload kar ke MobileNetV2 ya YOLOv8 mein se koi bhi model select kar sakta hai prediction ke liye.