|
| 1 | +# WISE |
| 2 | + |
| 3 | +WISE is a knowledge-intensive text-to-image benchmark that evaluates whether models can use commonsense, cultural, scientific, spatial, and temporal knowledge to generate correct images. |
| 4 | + |
| 5 | +- Paper: https://arxiv.org/abs/2503.07265 |
| 6 | +- Dataset: https://huggingface.co/datasets/Yuwei-Niu/WISE |
| 7 | + |
| 8 | +## Overview |
| 9 | + |
| 10 | +**Dataset:** 1000 prompts across 6 categories (Culture, Time, Space, Biology, Physics, Chemistry) |
| 11 | + |
| 12 | +**Evaluation:** GPT-4o judges each generated image on three dimensions: |
| 13 | +- **Consistency** (0-2): How well the image matches the prompt |
| 14 | +- **Realism** (0-2): Visual quality and photorealism |
| 15 | +- **Aesthetic Quality** (0-2): Artistic appeal and composition |
| 16 | + |
| 17 | +**WiScore Formula:** `(0.7 × consistency + 0.2 × realism + 0.1 × aesthetic) / 2` |
| 18 | + |
| 19 | +**Final Score:** Weighted average across categories (Culture: 0.4, Time: 0.167, Space: 0.133, Biology/Physics/Chemistry: 0.1 each) |
| 20 | + |
| 21 | +## Environment Variables |
| 22 | + |
| 23 | +```bash |
| 24 | +export WISE_API_KEY="your-api-key" # Judge API key |
| 25 | +export WISE_BASE_URL="https://api.openai.com/v1" # Judge API endpoint |
| 26 | +export WISE_MODEL_NAME="gpt-4o-2024-05-13" # Judge model name |
| 27 | +export WISE_RAW_OUTPUT_DIR="/path/to/model/output" # Where model saves generated images |
| 28 | +``` |
| 29 | + |
| 30 | +## Usage |
| 31 | + |
| 32 | +### Full Evaluation with bagel |
| 33 | + |
| 34 | +```bash |
| 35 | +cd /pfs/weiyang/Show/lmms-eval |
| 36 | + |
| 37 | +export WISE_API_KEY="sk-..." |
| 38 | +export WISE_BASE_URL="https://api.bltcy.ai/v1" |
| 39 | +export WISE_MODEL_NAME="gpt-4o" |
| 40 | +export WISE_RAW_OUTPUT_DIR="/pfs/weiyang/Show/lmms-eval/outputs/WISE_raw/bagel_umm" |
| 41 | + |
| 42 | +python -m lmms_eval \ |
| 43 | + --model bagel_umm \ |
| 44 | + --model_args pretrained=/pfs/weiyang/WISE_re/CKPT/ByteDance-Seed/BAGEL-7B-MoT,mode=generate,output_dir=/pfs/weiyang/Show/lmms-eval/outputs/WISE_raw/bagel_umm \ |
| 45 | + --tasks WISE \ |
| 46 | + --batch_size 1 \ |
| 47 | + --log_samples \ |
| 48 | + --output_path /pfs/weiyang/Show/lmms-eval/outputs/WISE_eval/bagel_umm |
| 49 | +``` |
| 50 | + |
| 51 | +## Metrics |
| 52 | + |
| 53 | +- `WISE_culture_score`: Culture category score (prompt_id 1-400) |
| 54 | +- `WISE_time_score`: Time category score (prompt_id 401-567) |
| 55 | +- `WISE_space_score`: Space category score (prompt_id 568-700) |
| 56 | +- `WISE_biology_score`: Biology category score (prompt_id 701-800) |
| 57 | +- `WISE_physics_score`: Physics category score (prompt_id 801-900) |
| 58 | +- `WISE_chemistry_score`: Chemistry category score (prompt_id 901-1000) |
| 59 | +- `WISE_overall_wiscore`: Weighted overall score (main metric) |
| 60 | + |
| 61 | +All scores are in the range [0.0, 1.0]. |
| 62 | + |
| 63 | +Do not use VQA-only models or image-editing models for this task. |
0 commit comments