Views
No views yet
best_mobilenet.keras — MobileNetV2 (Image Classification)bestyolomodel.pt — YOLOv8 (Object Detection)| Class | Status |
|---|---|
| cardboard | Recyclable |
| glass | Recyclable |
| metal | Recyclable |
| paper | Recyclable |
| plastic | Recyclable |
| trash | Non-Recyclable |
1from huggingface_hub import hf_hub_download
2from tensorflow.keras.models import load_model
3from ultralytics import YOLO
4
5REPO_ID = "SabaTariq510/waste-classification-models"
6
7# MobileNetV2
8mobilenet_path = hf_hub_download(repo_id=REPO_ID, filename="best_mobilenet.keras")
9mobilenet_model = load_model(mobilenet_path)
10
11# YOLOv8
12yolo_path = hf_hub_download(repo_id=REPO_ID, filename="bestyolomodel.pt")
13yolo_model = YOLO(yolo_path, task="detect")