Downloads · 30 days
0
Itsmepanoik/Best_MobileNetV2_Model
Best_MobileNetV2_Model is a machine learning model from Itsmepanoik. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A MobileNetV2-based image classifier for waste density detection, trained as part of the Scrubaroo Web3 citizen reward system.
Downloads · 30 days
0
Access
Public
Updated Apr 23, 2026
Repo size
9.2 MB
Likes
0
Public
Click a slice to open those files.
.pth9.2 MB · 100%
From the Hugging Face model README
A MobileNetV2-based image classifier for waste density detection, trained as part of the Scrubaroo Web3 citizen reward system.
| Class | Confidence Score | Description |
|---|---|---|
| High | ≥ 85% | Area heavily covered with waste |
| Low | 65–84% | Area with some scattered litter |
| NoWaste | ≤ 64% | Clean area with no visible waste |
import torch
import torchvision.transforms as transforms
import torchvision.models as models
from PIL import Image
# Load model
model = models.mobilenet_v2(weights=None)
model.classifier[1] = torch.nn.Linear(1280, 3)
model.load_state_dict(torch.load('MNV2_WL_TK-MobileNet_V2.pth',
map_location='cpu'))
model.eval()
# Transform
transform = transforms.Compose([
transforms.Resize((224, 224)),
transforms.ToTensor(),
transforms.Normalize([0.485, 0.456, 0.406],
[0.229, 0.224, 0.225])])
# Predict
image = Image.open('image.jpg').convert('RGB')
tensor = transform(image).unsqueeze(0)
with torch.no_grad():
output = model(tensor)
predicted = output.argmax(dim=1).item()
class_names = {0: 'High', 1: 'Low', 2: 'NoWaste'}
print(class_names[predicted])
Paper: Scrubaroo: AI-Powered Waste Detection and Blockchain-Based Citizen Reward System, SETN 2026