Skip to main content

Visual Generation Quality Evaluation SDK

Project description

Evalytic

Pytest for images. Automated quality evaluation for AI-generated visuals.

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-4o, 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
  • 6 Semantic Dimensions — visual_quality, prompt_adherence, text_rendering, input_fidelity, transformation_quality, artifact_detection

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

# 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 openai/gpt-4o        # OpenAI
evaly bench -m flux-schnell -p "A cat" -j anthropic/claude-sonnet-4  # Anthropic
evaly bench -m flux-schnell -p "A cat" -j ollama/qwen2.5-vl:7b # Local

Optional Extras

pip install "evalytic[metrics]"  # CLIP Score + LPIPS (~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.dev

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.2.1.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

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

evalytic-0.2.1-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for evalytic-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4762f6087b4f717a7474929773a160f9ab3094ce1ccad290f23fc75950f62856
MD5 6ae208ed7e64fe726bbbd3842d4f0522
BLAKE2b-256 c8e37998baad2b192a857b05906ae6a0d0c28309df53582e43d49e17e5adbf39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: evalytic-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 61.6 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b2e09eba7f1e5e80ef0b274df50f7db0e15d27608e19daf7b27d563b4499e0c
MD5 681e8120f0c0ca8a432d0e2c05f0d5cf
BLAKE2b-256 1fc9469b73e3929729f8202e664100ce45c538db668ac45d94658a3737d0f72d

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