Metadata-Version: 2.4
Name: ayase
Version: 0.2.2
Summary: Modular media quality metrics toolkit
Project-URL: Homepage, https://github.com/seruva19/ayase
Project-URL: Repository, https://github.com/seruva19/ayase
Project-URL: Issues, https://github.com/seruva19/ayase/issues
Project-URL: Changelog, https://github.com/seruva19/ayase/blob/main/CHANGELOG.md
Author: Ayase Contributors
License-Expression: MIT
License-File: LICENSE
Keywords: ai,computer-vision,dataset,image,metrics,ml,quality-assessment,video,vqa
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Requires-Dist: accelerate>=0.25.0
Requires-Dist: audiobox-aesthetics<0.1.0,>=0.0.4
Requires-Dist: cdpam==0.0.6
Requires-Dist: cer>=1.0
Requires-Dist: colour-science>=0.4.0
Requires-Dist: cvvdp<0.6,>=0.5.6
Requires-Dist: decord>=0.6.0
Requires-Dist: diffusers>=0.25.0
Requires-Dist: distillmos==0.9.1
Requires-Dist: einops-exts<0.1,>=0.0.4
Requires-Dist: einops>=0.8.1
Requires-Dist: faster-whisper<2.0,>=1.2.0
Requires-Dist: fastwer>=0.2
Requires-Dist: ftfy>=6.0
Requires-Dist: geomloss<1.0,>=0.2.6
Requires-Dist: huggingface-hub<2.0,>=0.20.0
Requires-Dist: imageio-ffmpeg<1.0,>=0.6.0
Requires-Dist: imageio<3.0,>=2.33.0
Requires-Dist: invisible-watermark>=0.2.0
Requires-Dist: iopath<0.2,>=0.1.10
Requires-Dist: joblib>=1.3.0
Requires-Dist: librosa<0.11,>=0.10.1
Requires-Dist: lpips>=0.1.4
Requires-Dist: matplotlib>=3.7.0
Requires-Dist: mediapipe<1.0,>=0.10.0
Requires-Dist: moviepy<2.0,>=1.0.3
Requires-Dist: msclap<2.0,>=1.3.4
Requires-Dist: muq>=0.1.0
Requires-Dist: nltk>=3.8.0
Requires-Dist: numba>=0.58.0
Requires-Dist: numpy<3.0,>=1.24.0
Requires-Dist: omegaconf>=2.3.0
Requires-Dist: onnxruntime>=1.14.0
Requires-Dist: open-clip-torch>=2.24.0
Requires-Dist: opencv-python<5.0,>=4.9.0
Requires-Dist: paddleocr>=2.7
Requires-Dist: paddlepaddle>=3.0
Requires-Dist: pandas<3.0,>=2.1.0
Requires-Dist: peft<1.0,>=0.2.0
Requires-Dist: pillow<13.0,>=10.2.0
Requires-Dist: prdc>=0.2
Requires-Dist: pyarrow<23.0,>=15.0.0
Requires-Dist: pydantic-settings<3.0,>=2.1.0
Requires-Dist: pydantic<3.0,>=2.5.0
Requires-Dist: pyiqa<1.0,>=0.1.13
Requires-Dist: pyloudnorm<1.0,>=0.1.1
Requires-Dist: pyrtools>=1.0.9
Requires-Dist: python-levenshtein>=0.21.0
Requires-Dist: python-speech-features<1.0,>=0.6
Requires-Dist: pytorch-fid==0.3.0
Requires-Dist: pytorchvideo<0.2,>=0.1.5
Requires-Dist: pywavelets>=1.3.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: qwen-vl-utils>=0.0.8
Requires-Dist: regex>=2024.0.0
Requires-Dist: requests>=2.31.0
Requires-Dist: resampy<0.5,>=0.4
Requires-Dist: rich<15.0,>=13.7.0
Requires-Dist: rtmlib>=0.0.13
Requires-Dist: safetensors>=0.4.0
Requires-Dist: scenedetect<1.0,>=0.6.5
Requires-Dist: scikit-image>=0.19.0
Requires-Dist: scikit-learn>=1.3.0
Requires-Dist: scikit-video>=1.1.11
Requires-Dist: scipy>=1.11.0
Requires-Dist: sentencepiece<1.0,>=0.1.99
Requires-Dist: setuptools<70,>=69
Requires-Dist: silero-vad<7.0,>=6.0.0
Requires-Dist: soundfile>=0.12.0
Requires-Dist: timm>=0.9.12
Requires-Dist: tomli-w<2.0,>=1.0.0
Requires-Dist: tomli<3.0,>=2.0.1; python_version < '3.11'
Requires-Dist: torch<2.11,>=2.1.0
Requires-Dist: torchaudio<2.11,>=2.1.0
Requires-Dist: torchmetrics[audio]>=1.0.0
Requires-Dist: torchvision<0.26,>=0.16.0
Requires-Dist: tqdm<5.0,>=4.66.0
Requires-Dist: transformers<5.0,>=4.45.0
Requires-Dist: typer<1.0,>=0.12.0
Requires-Dist: typing-extensions>=4.0.0; python_version < '3.11'
Requires-Dist: ultralytics<9.0,>=8.0.0
Requires-Dist: umap-learn>=0.5.0
Requires-Dist: uv<1.0,>=0.9.0
Requires-Dist: v-stream>=0.1.2
Requires-Dist: vebench==1.0.0
Requires-Dist: wget<4.0,>=3.2
Requires-Dist: zipfile-deflate64<0.3,>=0.2
Description-Content-Type: text/markdown

# Ayase

Ayase measures the quality and content of images and videos. Choose the metrics
that matter to you, run them on your files, and save a report with scores and
validation issues. 393 modules produce 620 metrics across 22 categories,
covering visual quality, text alignment, motion, audio, safety, and more.

## Install

Requires Python 3.9 or newer:

```bash
pip install ayase
```

Ayase automatically downloads weights and provisions backend environments or
native tools when needed, then caches them for later runs. No per-metric extras
are required. First use of an uncached metric needs internet access; hardware
requirements depend on the metric.

## Quick start

Put images or videos in a folder, then run:

```bash
ayase scan ./media --modules metadata,basic_quality --format json --output report.json
```

The JSON report contains `run_status`, overall `stats`, and `samples` with
per-file results. A missing score is not zero: the metric may not have been
selected, may not apply to the file, or may have failed or been unavailable.
Check the run status and logs for details.

## Choose metrics

Browse available metrics and inspect one:

```bash
ayase help
ayase help blur_score
```

`blur_score` is a metric field; `basic_quality` is a module that produces it.
Pass module names to `--modules`. Scores use different scales and directions,
so check the metric description before comparing results. The
[metric catalog](METRICS.md) describes inputs, ranges, requirements, and
readiness: an approximate metric uses a substitute or partial method, while an
unimplemented metric has no supported complete backend in a standard install.
The [model catalog](MODELS.md) lists weights and licenses.

## Inputs

The scanner finds images and videos, including in subfolders. For metrics that
need a caption, place a `.txt`, `.caption`, or caption `.json` file beside the
media file with the same base name, such as `clip.mp4` and `clip.txt`.
Reference-based metrics need an
explicit `reference_path` on a `Sample`; the scanner does not pair references
automatically. The Python API also accepts prepared `Sample` objects. See the
[usage guide](docs/usage.md) for input and configuration details.

## Python

```python
from ayase import AyasePipeline

pipeline = AyasePipeline(modules=["metadata", "basic_quality"])
results = pipeline.run("./media")

for sample in results.values():
    if sample.quality_metrics is not None:
        print(sample.path.name, sample.quality_metrics.blur_score)

pipeline.export("report.json")
pipeline.export("report.csv", format="csv")
```

## Guides

| Task | Guide |
| --- | --- |
| Run checks, filter files, or configure metrics | [Usage and configuration](docs/usage.md) |
| Understand downloads, caches, and backend requirements | [Managed backends](docs/managed_backends.md) |
| Integrate through an isolated environment | [Isolated client](docs/isolated_client.md) |
| Add a metric or plugin | [Custom modules](docs/custom_modules.md) |
| Contribute to Ayase | [Contributing](CONTRIBUTING.md) |
| Review changes between versions | [Changelog](CHANGELOG.md) |

APIs and module interfaces may change before 1.0.

## License

Ayase's own code is MIT. Bundled components and downloaded model weights retain
their own terms; see [third-party notices](src/ayase/third_party/NOTICES.md)
and the [model catalog](MODELS.md).

## Google Colab

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seruva19/ayase/blob/master/notebooks/ayase_demo.ipynb)
