Shreya2911/ai-vision-litter-yolo11
YOLO11 Street Litter Detector
2 min readupdated
This model is designed for automated litter detection in street photos, classifying objects into 8 categories (bottles, cans, bags, boxes, and more). Based on the YOLO11 architecture (YOLO11s and YOLO11n variants), it was fine-tuned on the TACO (Trash Annotations in Context) dataset as part of a learning project for an annotation tool. The solution is useful for environmental app developers, researchers, and creators of automated urban monitoring systems.
Key features
- Two model versions: The more accurate YOLO11s (recommended) and the lightweight YOLO11n.
- 8 litter categories: Separation into bottles, cans, bags, cardboard, lids, straws, cups, and miscellaneous items.
- Specialized data: Training on the TACO dataset with the addition of custom annotated images.
- Ultralytics integration: Full compatibility with the standard YOLO library for rapid deployment.
What you can do
- Script integration: Run local analysis on street photos to find bottles, cans, and packaging.
- Service development: Use model weights in custom applications for automated litter annotation on images.
- Ecological analysis: Apply the detector to count and classify waste in open areas.
Example
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
weights = hf_hub_download("Shreya2911/ai-vision-litter-yolo11", "yolo_taco_v2_s640.pt")
model = YOLO(weights)
results = model.predict("photo.jpg", conf=0.30)
results[0].show()Read more
DetailsTraining metrics and details:
• Metrics: mAP50 is 0.265, mAP50-95 is 0.193 for the recommended v2_s640 version.
• Training: 100 epochs, image size 640 pixels, batch size 32.
• Limitations: Large objects are detected better (recall 0.64), small ones are often missed, and paper boxes can be confused with plastic bags.
• License: AGPL-3.0 (inherited from Ultralytics YOLO11).










Comments