Skip to main content

Visual Generation Quality Evaluation SDK

Project description

Evalytic

Evals for visual AI. Automated quality evaluation for AI-generated images and video.

PyPI Python License

Know if your AI-generated visuals are good — before your users tell you they're not.

pip install evalytic

evaly bench \
  --models flux-schnell flux-dev flux-pro \
  --prompts "A photorealistic cat on a windowsill" \
  --output report.html

What It Does

Evalytic benchmarks AI image generation models by generating images, scoring them with VLM judges (Gemini, GPT, Claude, Ollama), and producing rich reports — all in one command.

  • Model Selection — Compare Flux Schnell vs Dev vs Pro with real prompts
  • Prompt Optimization — Measure how well models follow your prompts
  • Regression Detection — Catch quality drops when models update
  • CI/CD Quality Gate — Block deploys when image quality falls below threshold
  • 7 Semantic Dimensions — visual_quality, prompt_adherence, text_rendering, input_fidelity, transformation_quality, artifact_detection, identity_preservation
  • Consensus Judging — Multi-judge scoring with automatic agreement analysis

Quickstart

1. Install

pip install evalytic

2. Set API Keys

export FAL_KEY=your_fal_key          # fal.ai for image generation
export GEMINI_API_KEY=your_gemini_key  # Free tier: 1,000 req/day

3. Run

# Single model benchmark
evaly bench -m flux-schnell -p "A cat sitting on a windowsill" --yes

# Compare models with HTML report
evaly bench -m flux-schnell -m flux-dev -m flux-pro \
  -p prompts.json -o report.html --review

# img2img benchmark
evaly bench -m flux-kontext -m seedream-edit -m reve-edit \
  -p prompts.json --input product.jpg --yes

# Score an existing image
evaly eval --image output.png --prompt "A sunset over mountains"

# CI/CD quality gate
evaly gate --report report.json --threshold 3.5

CLI Commands

Command Description
evaly bench Generate, score, and report in one command
evaly eval Score a single image without generation
evaly gate CI/CD quality gate with pass/fail exit codes

Judges

Any VLM that can analyze images works as a judge:

evaly bench -m flux-schnell -p "A cat" -j gemini-2.5-flash        # Default (free)
evaly bench -m flux-schnell -p "A cat" -j gemini-3-flash           # Gemini 3
evaly bench -m flux-schnell -p "A cat" -j openai/gpt-5.2           # OpenAI
evaly bench -m flux-schnell -p "A cat" -j anthropic/claude-sonnet-4-6  # Anthropic
evaly bench -m flux-schnell -p "A cat" -j ollama/qwen2.5-vl:7b    # Local

Consensus Mode

Use multiple judges for more reliable scores:

evaly bench -m flux-schnell -p "A cat" \
  --judges "gemini-2.5-flash,openai/gpt-5.2"

Two judges score in parallel. If they disagree, a third breaks the tie.

Optional Extras

pip install "evalytic[metrics]"  # CLIP Score + LPIPS + ArcFace (~2GB)
pip install "evalytic[all]"      # Everything

Configuration

Create evalytic.toml in your project root:

[keys]
fal = "your_fal_key"
gemini = "your_gemini_key"

[bench]
judge = "gemini-2.5-flash"
dimensions = ["visual_quality", "prompt_adherence"]
concurrency = 4

Documentation

Full docs at docs.evalytic.ai

License

MIT

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

evalytic-0.3.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

evalytic-0.3.1-py3-none-any.whl (92.3 kB view details)

Uploaded Python 3

File details

Details for the file evalytic-0.3.1.tar.gz.

File metadata

  • Download URL: evalytic-0.3.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for evalytic-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9d7a29a4cbba4909dee76202b344f00e89b4898a657552b7a6216115832af835
MD5 a18a17c89c511446a7152ac4fdc7144b
BLAKE2b-256 e2d8728c3c0c1e5f8e422714f5fb5ff01bae5c6b163c9f51cbd183e44f666369

See more details on using hashes here.

File details

Details for the file evalytic-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: evalytic-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 92.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for evalytic-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee47d97adb20beb24662d29c916386a8a3366f5af2467bcba18dba1cdc457180
MD5 6b3f8d6cf9d91e1e32ea3fc22fef1403
BLAKE2b-256 dc2d00e3e26e5e4cd0eb15a7187ce93a7ede58bfde9111873d09585ed7139648

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