Skip to main content

Modular media quality metrics toolkit

Project description

Ayase

Modular media quality metrics toolkit for video, image, and audio datasets.

Overview

  • 324 modules, 354 quality metrics across visual, temporal, audio, perceptual, and safety categories
  • Modular pipeline - modules compute raw values, downstream apps decide what to do with them
  • CLI and Python API with profile-based configuration
  • See METRICS.md for the full reference, MODELS.md for all pretrained weights

Installation

pip install ayase

Ayase ships with the shared runtime dependencies used by the bundled metrics. Some model implementations include source files under src/ayase/third_party/; model binaries are downloaded and cached automatically on first use when they are not packaged in the repository.

Quick Start

ayase scan ./my_dataset
ayase scan ./my_dataset --modules metadata,basic_quality,motion
ayase modules list
ayase modules check
ayase filter ./my_dataset --min-score 70 --output ./filtered
from ayase import AyasePipeline

ayase = AyasePipeline(modules=["basic", "aesthetic", "motion"])
results = ayase.run("./my_dataset")

for path, sample in results.items():
    if sample.quality_metrics:
        print(f"{sample.path.name}: score={sample.quality_metrics.technical_score}")

ayase.export("report.json")

Configuration

Create ayase.toml in your project root:

[general]
parallel_jobs = 8

[pipeline]
modules = ["metadata", "basic_quality", "motion"]

[output]
default_format = "json"
artifacts_dir = "reports"

Writing Plugins

from ayase.models import Sample, ValidationIssue, ValidationSeverity
from ayase.pipeline import PipelineModule

class MyCheck(PipelineModule):
    name = "my_check"
    description = "Custom quality check"
    default_config = {"threshold": 0.5}

    def process(self, sample: Sample) -> Sample:
        # Your logic here
        return sample
ayase scan ./data --modules metadata,my_check

Development

git clone <repo-url> && cd ayase
pip install -e ".[dev]"
pytest

License

MIT - see LICENSE.

Model licenses: ML models downloaded at runtime have their own licenses (Apache 2.0, BSD, CC-BY-NC, etc.). Users are responsible for compliance. See MODELS.md for the full catalog with license info. No model weights are bundled with this package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ayase-0.1.22.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ayase-0.1.22-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file ayase-0.1.22.tar.gz.

File metadata

  • Download URL: ayase-0.1.22.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for ayase-0.1.22.tar.gz
Algorithm Hash digest
SHA256 9d5a9d5b44ff03f104aeeacc8ae0f8ea59b9a1a4ecce0882f66b86157ab586bc
MD5 3f3d5df1a8c33eb9bb558e3ca7d1a918
BLAKE2b-256 0364a8fbcc1960e0f5a8bc385b07c798214b3f78e1632a86ce0f58160a4aff6f

See more details on using hashes here.

File details

Details for the file ayase-0.1.22-py3-none-any.whl.

File metadata

  • Download URL: ayase-0.1.22-py3-none-any.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for ayase-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 590e109f790500252ab6fd92505cde2049089002a4e33fac3eecb40ebf017ec9
MD5 75b2770c5174b9d3cb1525bd7ad32318
BLAKE2b-256 c38b0a830d3bbf50e388df7106f42b2e805d9917234b4cae9a3762b8c0f502a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page