Skip to main content

Modular media quality metrics toolkit

Project description

Ayase

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

Overview

  • 224 modules, 251 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                # Core (metadata/structural checks only)
pip install ayase[ml]            # Everything
pip install ayase[v-iqa]         # PyIQA, BRISQUE, NIQE, scikit-video
pip install ayase[v-perceptual]  # CLIP, LPIPS, open-clip, timm
pip install ayase[v-motion]      # RAFT optical flow, decord
pip install ayase[dev]           # pytest, black, ruff, mypy

Models are downloaded and cached automatically on first use.

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.16.tar.gz (439.5 kB 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.16-py3-none-any.whl (608.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ayase-0.1.16.tar.gz
Algorithm Hash digest
SHA256 9de23f49c0f0733e795cb60f3a673c406f03f889a0243f323ce702fba61df93a
MD5 35af48e65dd0dc3bf5d423a16deae0bb
BLAKE2b-256 64372761e15e70c9fab8abcda6b4472ca2d72a238bea7db0ad5c8605b1d695a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ayase-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 608.2 kB
  • 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9bca4c4a7f78f0bee723779074d73278d3d2cc1e502aa84083daa75e258b68
MD5 d4362d70184ef2fb071560e9553ca7fb
BLAKE2b-256 e3a079ac052e047305c62bfe6951d0a81fbf7cb001b95af7cfcda8c9413186b8

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