A YOLO-based pipeline for waste detection in street-view images, including model evaluation, Top-100 image ranking, and Precision@100 (P@100) scoring.
---
ML_Assignment03_Group03/
├── src/
│ ├── run_pipeline.py
│ ├── predict_top100.py
│ ├── leaderboard.py
│ └── data.yaml
├── requirements.txt
├── readme.md
└── .gitignore
Install dependencies with:
pip install -r requirements.txtA CUDA-enabled GPU is required for running the pipeline.
The dataset is not included in this repository.
Expected folder structure:
train/images/
train/labels/
val/images/
val/labels/
test/images/
test/labels/
Make sure the dataset structure matches the paths defined in src/data.yaml.
Run all commands from the repository root.
python src/run_pipeline.pyThis script:
- checks dataset structure
- runs validation and test evaluation
- reports mAP metrics
python src/predict_top100.pyThis script:
- predicts on the test set
- ranks images using the highest detection confidence
- selects the Top 100 images
- saves original and visualized outputs
python src/leaderboard.pyThis script computes:
P@100 = correct waste images / 100
- Framework: Ultralytics YOLO
- Image size: 512
- Best model expected at:
runs/detect/runs/detect/yolo26_5classes/weights/best.pt
- The dataset is highly imbalanced, with many clean images.
- The primary evaluation metric is P@100.
- Ensure the dataset paths and model path are correct before running the scripts.
- Daman Dogra
- Simon Deuten
- Wieger van Teeffelen