transform-spec-validator

Validate transform specification files for the benchmark runner.

95|3|Updated Oct 25, 2024
One-click install
npx skills add https://github.com/albumentations-team/benchmark --skill transform-spec-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: transform-spec-validator
Source: https://github.com/albumentations-team/benchmark/tree/main/.cursor/skills/transform-spec-validator
Command: npx skills add https://github.com/albumentations-team/benchmark --skill transform-spec-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates custom transform specification files for the benchmark runner.

Core Features & Use Cases

  • Ensures LIBRARY is a string and present.
  • Validates that call is defined and callable with required parameters.
  • Checks that TRANSFORMS is a list of dictionaries each containing 'name' and 'transform'.
  • Helps developers verify their transforms before running benchmarks.

Quick Start

Run the validator on your spec file to verify required attributes and structure.

Frequently Asked Questions about transform-spec-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate a custom transform spec for a Python benchmark runner?

To validate a custom transform spec, you must ensure the Python file defines a string LIBRARY, a callable __call__, and a TRANSFORMS list of dictionaries with name and transform entries. This verifies compatibility before running image or video pipeline benchmarks.

What structure is required for TRANSFORMS in a benchmark specification file?

The TRANSFORMS structure in a benchmark specification must be a list of dictionaries. Each dictionary within this list is required to contain both a name entry and a transform entry to properly define custom image or video transformations.

Do I need a Python environment to validate transform specifications?

Yes, validating transform specifications requires a Python environment. The validator explicitly checks that the __call__ attribute is defined and callable, which necessitates an active Python runtime to evaluate custom transform definitions for benchmarking pipelines.

Why does my custom transform spec fail benchmark runner compatibility checks?

Your custom transform spec fails compatibility checks if LIBRARY is missing or not a string, if __call__ is not callable, or if TRANSFORMS lacks the required name and transform dictionary entries. The validator ensures correct structure before running benchmarks.

Can I validate image and video pipeline transforms before running benchmarks?

Yes, you can validate image and video pipeline transforms before running benchmarks. The validator checks your specification file to ensure developers verify required attributes like callable __call__ definitions and correct TRANSFORMS structures prior to execution.