Skip to content

feat: Migrate PC validation pipeline (validate.py). #4

@nedseb

Description

@nedseb

Description

Move the SSIM-based validation pipeline from micropython-steami-tutorials.

Source

micropython-steami-tutorials/validate.py (269 lines)

Tasks

  • Copy validate.py
  • Adapt paths for new repo structure
  • Verify python validate.py produces same SSIM scores as before
  • Add CLI documentation in README

Features

  • Discovers tutorials by scanning screenshot.py files
  • Runs screenshot.py → generates simulator PNG
  • Rasterizes SVG reference via cairosvg
  • Computes SSIM (structural similarity) score
  • Generates amplified diff images (5x)
  • Threshold: SSIM >= 0.85 or pixel-MAE >= 0.95

Dependencies

Parent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions