Datasets:
File size: 672 Bytes
906535b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 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:
```bash
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.
|