Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Waste Detection in the Built Environment

A YOLO-based pipeline for waste detection in street-view images, including model evaluation, Top-100 image ranking, and Precision@100 (P@100) scoring.

image ---

Repository Structure

ML_Assignment03_Group03/
├── src/
│   ├── run_pipeline.py
│   ├── predict_top100.py
│   ├── leaderboard.py
│   └── data.yaml
├── requirements.txt
├── readme.md
└── .gitignore

Setup

Install dependencies with:

pip install -r requirements.txt

A CUDA-enabled GPU is required for running the pipeline.


Dataset

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.


Pipeline

Run all commands from the repository root.

1. Evaluate model

python src/run_pipeline.py

This script:

  • checks dataset structure
  • runs validation and test evaluation
  • reports mAP metrics

2. Generate Top 100 predictions

python src/predict_top100.py

This script:

  • predicts on the test set
  • ranks images using the highest detection confidence
  • selects the Top 100 images
  • saves original and visualized outputs

3. Compute P@100

python src/leaderboard.py

This script computes:

P@100 = correct waste images / 100

Model

  • Framework: Ultralytics YOLO
  • Image size: 512
  • Best model expected at:
runs/detect/runs/detect/yolo26_5classes/weights/best.pt

Notes

  • 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.

Authors

  • Daman Dogra
  • Simon Deuten
  • Wieger van Teeffelen

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages