Phospheneser's picture
Release RealLayoutArena
906535b
|
Raw History Blame Contribute Delete
672 Bytes

Generation utilities

RealLayoutArena is used for subjective arena evaluation: generate images for the same tasks across models and compare them through anonymous human preference voting.

Run these commands from the repository root with Python 3.10+ and Pillow:

python evaluation/bench.py export --output jobs.jsonl --seed 42
python evaluation/local_inference.py --adapter my_adapter:generate \
  --jobs jobs.jsonl --images images

Provide generate(*, prompt, seed, width, height) in my_adapter.py, returning a PIL image. The exported jobs contain the 61 prompts and their target dimensions. Images are saved as images/<id>.png for use in the arena.