CoolFace
Modelpublic

Jeremy341/MIRA-AI

sourceHugging Facemitupdated 1mo agoView on Hugging Face
2likes1.8kdownloads
Model Card

MIRA - YOLO11n Waste Detection for Recycling and Waste Sorting

MIRA is a custom YOLO11n object-detection project for waste detection, recycling automation, and automated waste sorting.

The models detect five classes:

  • glass
  • metal
  • paper
  • plastic
  • trash

This repository contains PyTorch, ONNX, and TFLite exports from the MIRA experiments. The recommended reference model is mira_exp019.pt.

  • GitHub: https://github.com/jeremy341/MIRA-AI
  • Project website: https://mira-vision.vercel.app/
  • PyPI package: https://pypi.org/project/mira-ai/

EXP-019 performance

MetricResult
mAP5090.58%
mAP50-9582.15%
Precision87.2%
Recall84.6%
Training images5,108
Validation images415
Test images1,375
Classes5

These results come from the documented evaluation split used for EXP-019.

Available model files

FileFormatDescription
mira_exp019.ptPyTorchRecommended YOLO11n detector
mira_exp019.onnxONNXONNX export of EXP-019
mira_exp019_int8_320.tfliteTFLiteINT8 export at 320 px
mira_exp019_int8_640.tfliteTFLiteINT8 export at 640 px

The repository also contains models from earlier MIRA experiments.

Experiment results

ExperimentModelDatasetmAP50
EXP-005YOLOv8nCustom + TrashNet82.3%
EXP-006YOLOv8nFused Wild + TrashNet39.4%
EXP-009YOLOv8nTrashNet72.8%
EXP-011YOLOv8nTACO35.0%
EXP-013YOLO11nTACO + TrashNet55.1%
EXP-014YOLO11nCombined dataset60.7%
EXP-015YOLO11nCombined dataset with WaRP56.0%
EXP-016YOLO11nWaRP-focused dataset58.8%
EXP-017YOLO11nLarger combined dataset59.3%
EXP-018YOLO11nClean balanced dataset90.6%
EXP-019YOLO11nClean balanced repeatability run90.58%

The main lesson was that adding more data did not automatically improve the model. Removing inconsistent examples and building a cleaner, more balanced dataset led to the strongest results in EXP-018 and EXP-019.

Quick start

Install the required packages:

bash
pip install ultralytics huggingface_hub

Download the recommended model directly from Hugging Face:

python
from huggingface_hub import hf_hub_download
from ultralytics import YOLO

model_path = hf_hub_download(
    repo_id="Jeremy341/MIRA-AI",
    filename="mira_exp019.pt",
)

model = YOLO(model_path)

results = model.predict(
    "image.jpg",
    conf=0.25,
    save=True,
)

results[0].show()

For validation, provide a compatible YOLO dataset configuration:

python
results = model.val(data="dataset.yaml")

Intended use

MIRA is intended for research and prototyping in:

  • waste detection
  • recycling automation
  • waste sorting
  • computer-vision research
  • edge-AI object detection
  • robotic sorting experiments

The models are not presented as a finished production recycling system.

Datasets

The models were trained using combinations of:

The datasets were remapped to the five MIRA classes. Each dataset remains subject to its original license and usage terms.

Limitations

The models can struggle with:

  • white crumpled paper
  • cans viewed from the opening
  • strongly overlapping objects
  • unusual lighting
  • unusual viewing angles
  • waste objects outside the training distribution

The reported results do not guarantee the same performance on completely independent real-world images.

License

The model files are provided under the MIT License where applicable. Dataset licenses remain subject to their original terms.