id stringlengths 1 3 | source images listlengths 1 6 | a_to_b_instructions stringlengths 4 121 | a_to_b_instructions_eng stringlengths 11 548 | task stringclasses 14
values | target_resolution stringclasses 82
values |
|---|---|---|---|---|---|
1 | 将咖啡拉花改为五角星 | Change coffee latte art to a five-pointed star | Attribute Change | [880, 1088] | |
2 | 缩小叉子 | Shrink the fork | Attribute Change | [864, 1152] | |
3 | 将衣服图案替换为小猫 | Replace clothing pattern with kitten | Attribute Change | [768, 1280] | |
4 | 伸长狗舌头 | Extend the dogs tongue | Attribute Change | [976, 992] | |
5 | 将手机图案替换为小熊图案 | Replace phone pattern with bear pattern | Attribute Change | [848, 1152] | |
6 | 将苹果表皮改为条纹纹理 | Change apple skin to striped texture | Attribute Change | [1040, 944] | |
7 | 处理水果表皮为光滑亮泽翠绿色 | Make fruit skin smooth, glossy, and vibrant green | Attribute Change | [1168, 848] | |
8 | 缩小草莓 | Scale down the strawberry | Attribute Change | [896, 1104] | |
9 | 缩小咖啡杯至一半尺寸 | Scale coffee cup to half size | Attribute Change | [864, 1120] | |
10 | 替换船内木板为粗糙松木纹理,改船边漆面为剥落旧漆效果 | Replace boat interior planks with rough pine texture, change boat edge paint to peeling old paint effect | Attribute Change | [800, 1216] | |
11 | 将汤碗圆点图案替换为小爱心 | Replace polka dots on soup bowl with small hearts | Attribute Change | [880, 1104] | |
12 | 适度变细树枝 | Thin the tree branches moderately | Attribute Change | [864, 1152] | |
13 | 将椰子玩偶表情改为委屈哭脸 | Change coconut plushie expression to aggrieved crying face | Attribute Change | [880, 1120] | |
14 | 使盒上文字清晰 | Make text on box clear | Attribute Change | [864, 1152] | |
15 | 放大花盆尺寸 | Enlarge the flower pot | Attribute Change | [864, 1152] | |
16 | 将双肩包改为单肩包 | Change backpack to shoulder bag | Attribute Change | [864, 1152] | |
17 | 替换背景为宏伟室内剧院大厅 | Replace background with a grand indoor theater hall | Background Change | [1216, 816] | |
18 | 替换背景为广阔沙漠 | Replace background with vast desert landscape | Background Change | [800, 1216] | |
19 | 替换背景为茂密针叶林 | Replace background with dense coniferous forest | Background Change | [864, 1152] | |
20 | 替换背景为清晨雾中竹林,人物躺于深灰石板小径 | Replace background with misty morning bamboo forest, person lying on dark gray stone path | Background Change | [1216, 816] | |
21 | 替换背景为阳光明媚的户外日式庭院 | Replace background with sunny outdoor Japanese garden | Background Change | [1216, 816] | |
22 | 替换背景为纯白摄影棚 | Replace background with pure white studio | Background Change | [736, 1328] | |
23 | 替换木质墙壁为城市日出全景 | Replace wooden wall with grand city sunrise panorama | Background Change | [800, 1232] | |
24 | 替换背景为薰衣草花田 | Replace background with lavender field | Background Change | [800, 1216] | |
25 | 替换背景为阳光明媚的海滨悬崖 | Replace background with sunny seaside cliff | Background Change | [864, 1152] | |
26 | 替换背景为日式禅意花园 | Replace background with Japanese Zen garden | Background Change | [1152, 848] | |
27 | 替换背景为壮丽沙漠公路 | Replace background with majestic desert highway | Background Change | [1216, 816] | |
28 | 替换背景为现代高层公寓室内 | Replace background with modern high-rise apartment interior | Background Change | [816, 1184] | |
29 | 替换背景为复古木质餐桌场景 | Replace background with vintage wooden dining table scene | Background Change | [880, 1104] | |
30 | 替换背景为阳光明媚森林 | Replace background with sunny forest scene | Background Change | [1136, 864] | |
31 | 替换背景为阳光明媚的户外花园 | Replace background with sunny outdoor garden | Background Change | [880, 1104] | |
32 | 替换背景为户外热带海滩 | Replace background with outdoor tropical beach scene | Background Change | [1216, 816] | |
33 | 替换背景为户外山间木屋 | Replace background with outdoor mountain cabin | Background Change | [864, 1152] | |
34 | 替换背景为温馨室内卧室 | Replace background with cozy indoor bedroom | Background Change | [1216, 816] | |
35 | 替换背景为冬日雪林,含积雪地面、高耸松树及中央暖色逆光 | Replace background with winter snowy forest, featuring snow-covered ground, tall pine trees, and warm backlighting through the center | Background Change | [1184, 816] | |
36 | 替换背景为壮丽高山景观 | Replace background with majestic mountain landscape | Background Change | [1216, 816] | |
37 | 替换背景为黄昏欧式露天餐厅露台 | Replace background with dusk European open-air restaurant terrace | Background Change | [1104, 896] | |
38 | 替换背景为温暖光线复古图书馆 | Replace background with warm-lit vintage library interior | Background Change | [864, 1152] | |
39 | 将绿色渐变柱状图替换为橙色渐变 | Replace green gradient bar charts with orange gradient | Color Alteration | [1120, 880] | |
40 | 将西装纽扣替换为金色 | Replace suit buttons with gold | Color Alteration | [800, 1216] | |
41 | 将徽派建筑白墙改为米黄色 | Change white walls of Hui-style buildings to beige | Color Alteration | [1152, 864] | |
42 | 将前景右侧三辆青绿色电动滑板车改为金色 | Change the three teal electric scooters in the front right to gold | Color Alteration | [1152, 864] | |
43 | 将剧院红色座椅、包厢软垫及地毯改为深蓝色 | Change red seats, box cushions, and carpets in theater to dark blue | Color Alteration | [1216, 800] | |
44 | 将高领毛衣改为深紫色 | Change turtleneck sweater to dark purple | Color Alteration | [864, 1152] | |
45 | 将粉衣女性头发染绿 | Dye the pink-dressed womans hair green | Color Alteration | [864, 1152] | |
46 | 将狗毛色改为黑棕相间 | Change dog coat to black and tan | Color Alteration | [1216, 816] | |
47 | 将顶部人物绿眼改为深紫 | Change top figures green eyes to deep violet | Color Alteration | [736, 1344] | |
48 | 将啤酒泡沫改为柔和薄荷绿 | Change beer foam to soft pastel mint green | Color Alteration | [928, 1072] | |
49 | 将大众高尔夫车身改为光泽深金属蓝 | Change Volkswagen Golf body to glossy deep metallic blue | Color Alteration | [1360, 704] | |
50 | 将银杏树叶变为荧光亮粉色 | Change ginkgo tree leaves to fluorescent hot pink | Color Alteration | [1136, 864] | |
51 | 将熊猫黑毛变为深炭灰,白毛变为柔奶油米色 | Change panda black fur to deep charcoal gray and white fur to soft cream beige | Color Alteration | [800, 1216] | |
52 | 将南瓜汤变为深红宝石色 | Change pumpkin soup to deep ruby red | Color Alteration | [800, 1216] | |
53 | 将最近斜坡的雪变为淡紫色 | Change snow on nearest slope to soft pale lavender | Color Alteration | [1216, 816] | |
54 | 将最左边角色上半身变绿 | Turn the leftmost characters upper body green | Color Alteration | [1216, 816] | |
55 | 将红薯泥改为鲜艳芥末黄 | Change mashed sweet potato to vibrant mustard yellow | Color Alteration | [1136, 864] | |
56 | 将蓝色凳子改为焦橙色 | Change blue stool to burnt orange | Color Alteration | [800, 1216] | |
57 | 将角色头发染红 | Change character hair to red | Color Alteration | [720, 1360] | |
58 | 将男孩围裙改为白色 | Change the boys apron to white | Color Alteration | [1216, 816] | |
59 | 将模特黑色礼服改为深蓝色 | Change models black dress to dark blue | Color Alteration | [864, 1152] | |
60 | 移除人物,保留右下角银色烤面包机及两片面包,调整为极近特写构图,背景设为纯白,突出面包金黄纹理与蓬松质感及烤面包机金属光泽 | Remove people, keep bottom-right silver toaster and two toast slices, crop to extreme close-up, set background to pure white, highlight golden toast texture and fluffiness, emphasize toaster metallic sheen and reflections | Compose Edit | [992, 992] | |
61 | 替换电视为老式电视,旁边空位添加老妇人 | Replace TV with vintage TV, add elderly woman to adjacent empty space | Compose Edit | [864, 1120] | |
62 | 移除雪景替换为绿草地树木,火车替换为复古深红色蒸汽机车并添加白色烟雾 | Replace snowy background with green grass and trees, replace train with vintage dark red steam locomotive emitting white smoke | Compose Edit | [1184, 832] | |
63 | 背景改为灰色粗糙地面,叶子浅绿条纹变闪耀金色,深绿条纹变深邃皇家紫 | Change background to gray rough ground, turn leaf light green stripes to shining gold, turn dark green stripes to deep royal purple | Compose Edit | [992, 992] | |
64 | 背景改为浅色室内,花瓣红斑处添加金色闪烁星星 | Change background to light indoor, add tiny golden sparkling stars on red spots of petals | Compose Edit | [848, 1152] | |
65 | 放大地毯图案为主体,转换风格为鲜艳简洁 2D 矢量插画,背景设为纯米色。文本改为"happy, new year." | Zoom in on the carpet pattern as the main subject, convert the style to a vibrant and minimalist 2D vector illustration, and set the background to solid beige. Change the text to "happy, new year." | Compose Edit | [864, 1152] | |
66 | 提取左侧白衣女性,裁剪为胸部以上特写并居中,调整姿态为正对镜头、双臂下垂、温和微笑、直视前方,替换背景为纯净深灰色 | Extract woman in white blazer, crop to chest-up close-up and center, adjust pose to face camera with arms down, gentle smile, direct gaze, replace background with solid dark gray | Compose Edit | [992, 992] | |
67 | 将蓝红球衣男孩表情改为平静,场景替换为未来科幻过山车排队区,日文招牌替换为'Cosmic Hyperloop',背景添加全息显示屏 | Change blue-red jersey boys expression to calm, replace scene with futuristic sci-fi roller coaster queue, replace Japanese sign with 'Cosmic Hyperloop', add holographic displays to background | Compose Edit | [1152, 864] | |
68 | 转换视角为高角度俯视特写聚焦笔记本,移除男子咖啡杯及背景 | Change view to high-angle close-up focusing on notebook, remove man coffee cup and background | Compose Edit | [992, 992] | |
69 | 移除右侧涂鸦女性,将最左侧女生内搭上衣改为纯黑圆领打底衫 | Remove the female graffiti on the right and change the top worn by the girl on the far left to a plain black crew neck undershirt. | Compose Edit | [992, 992] | |
70 | 转换油画为写实电影摄影风格并添加黄昏云雾 | Convert oil painting to realistic cinematic photography style and add sunset clouds | Compose Edit | [1216, 816] | |
71 | 将投手球衣号码改为 38,替换背景为沙滩和蓝色海水 | Change pitcher jersey number to 38, replace background with beach and blue ocean | Compose Edit | [1216, 816] | |
72 | 转换工笔画为写实故宫雪景摄影 | Convert Gongbi painting to realistic Forbidden City snow photography | Compose Edit | [1248, 800] | |
73 | 改餐厅为现代简约风格,地板换浅色瓷砖木纹拼接,天花板去横梁变平整白色,添加大量用餐顾客 | Change restaurant interior to modern minimalist style, replace floor with light tile and wood grain pattern, remove ceiling beams for flat white surface, add many dining customers | Compose Edit | [1152, 864] | |
74 | 替换煎鱼为炸鸡腿,拉近镜头并调整为俯视角度,前移咖喱酱碗,去除水印 | Replace fried fish with two fried chicken legs, zoom in and adjust to top-down view, move curry bowl forward, remove watermark | Compose Edit | [1216, 816] | |
75 | 改为平视视角,移除上方吊灯,添加桌上台灯 | Change to eye-level view, remove overhead chandelier, add table lamp | Compose Edit | [864, 1152] | |
76 | 图像上色并提升质量,替换背景墙书法为儿童画 | Colorize image, enhance quality, replace background wall calligraphy with childrens drawing | Compose Edit | [1312, 736] | |
77 | 调整空间为明亮开放风格,居中沙发,替换茶几为黑色金属方桌,移除壁炉镜子油画,添加玻璃推拉门,增强光线 | Adjust space to bright open style, center sofa, replace coffee table with black metal square table, remove fireplace mirror oil painting, add glass sliding door, enhance lighting | Compose Edit | [1216, 816] | |
78 | 中央新增两块巧克力,模糊背景 | Add two pieces of chocolate in the center and blur the background. | Compose Edit | [800, 1216] | |
79 | 移除阳光束和雾气,替换花朵为红玫瑰 | Remove sunbeams and fog, replace flowers with red roses | Compose Edit | [864, 1152] | |
80 | 移除红色灯笼,地面覆盖白雪 | Remove red lanterns, cover ground with fresh white snow | Compose Edit | [848, 1152] | |
81 | 转换油画为写实摄影风格并增强电影感强对比光效 | Convert oil painting to photorealistic style and enhance cinematic high-contrast lighting | Compose Edit | [800, 1216] | |
82 | 改幼儿为俯身操作玩具轨道姿势,头发凌乱,表情专注,拉近镜头,添加警示牌和藤编篮子 | Change toddler pose to leaning over toy track, messy hair, focused expression, zoom in, add warning sign and wicker basket | Compose Edit | [1088, 880] | |
83 | 调整姿势为叉腰自信站立微笑,添加悬挂樱花枝头的木鸟屋,替换背景为日式锦鲤池石灯笼花园,应用几何窗格光影 | Change pose to standing confidently hands on hips smiling, add wooden birdhouse hanging from cherry blossom branch, replace background with Japanese garden koi pond stone lanterns, apply geometric window pane shadows | Compose Edit | [800, 1216] | |
84 | 转换视角为高角度俯视,移除桥、路灯和泰晤士河,底部添加带白色金属栏杆的灰色混凝土屋顶平台及银色垃圾桶 | Change view to high-angle俯视,remove bridge, streetlights, and Thames River, add gray concrete rooftop platform with white metal railings and silver trash can at bottom | Compose Edit | [880, 1104] | |
85 | 替换背景为欧式建筑阳台,添加石墙藤蔓粉花,调整光照为明亮自然日光 | Replace background with European balcony, add stone walls vines pink flowers, adjust lighting to bright natural daylight | Compose Edit | [1216, 816] | |
86 | 替换背景为明亮白天阿尔卑斯山风景,替换石台为木质窗台 | Replace background with bright daytime Alps scenery, replace stone platform with wooden windowsill | Compose Edit | [1296, 736] | |
87 | 将书桌材质改为烧杉木,将笔记本电脑颜色改为白色 | Change desk material to charred shou sugi ban wood, change laptop color to white | Compose Edit | [1216, 816] | |
88 | 替换背景为热带海滩,抬起人物右手向左伸展 | Replace background with sunny tropical beach, raise subjects right hand extending left with open palm | Compose Edit | [800, 1216] | |
89 | 将黄甜椒变红并移除水滴 | Change yellow bell pepper to red and remove water droplets | Compose Edit | [848, 1152] | |
90 | 将头发染深棕,替换花朵发饰为银色羽毛发夹 | Dye hair dark brown, replace flower hair accessory with silver feather clip | Compose Edit | [960, 1008] | |
91 | 人物头部左转轻嗅花朵,微启嘴唇,左手自然垂放,镜头右移 | Turn head left to smell flower, slightly open lips, lower left hand naturally, shift camera right | Compose Edit | [816, 1184] | |
92 | 将红色日式纸扇替换为白色羽毛扇,发型改为波浪短发 | Replace red Japanese paper fan with white feather fan, change hairstyle to wavy short hair | Compose Edit | [848, 1152] | |
93 | 替换背景为桌面,添加书本玻璃杯,调整暖光,松散鞋带加重磨损,右拉近视角 | Replace background with desk, add books and glass, adjust warm lighting, loosen laces and increase wear, zoom in from right angle | Compose Edit | [1152, 864] | |
94 | 增加集装箱表面锈蚀油漆剥落,氧化锁杆,模糊标签,视角改为左前仰视,光源移至左上 | Add rust and peeling paint to container surface, oxidize locking rods, blur labels, change view to low-angle front-left, move light source to top-left | Compose Edit | [1296, 736] | |
95 | 扩展右侧视野,添加穿深灰 T 恤牛仔裤男性至前方行列,微调长椅人物姿态,增加远景行人,右侧添加蓝色车辆局部,营造繁忙晴朗街景 | Extend right视野,add male in dark grey t-shirt and jeans to front row, adjust bench figures pose, add distant pedestrians, add partial blue vehicle on right, create busy sunny street scene | Compose Edit | [1152, 864] | |
96 | 将心形窗内绿色泡沫块替换为清澈蓝水,将三只蓝熊改为白色北极熊纹理 | Replace green foam blocks in heart-shaped window with clear blue water, change three blue bears to fluffy white polar bear texture | Compose Edit | [864, 1152] | |
97 | 转换图像为美漫风格插画,替换背景为夜晚城市天际线(深蓝天空、明月星星、亮灯摩天楼),调整人物为飞行姿态(左倾、屈膝、加黄色飘动披风),更换服装为蓝色超人战衣(胸前红黄 S 标志) | Convert image to American comic style illustration, replace background with night city skyline (dark blue sky, moon, stars, lit skyscrapers), adjust character to flying pose (tilt left, bent knees, add flowing yellow cape), change outfit to blue Superman suit with red and yellow S logo | Compose Edit | [864, 1152] | |
98 | 调整女孩姿势为单手叉腰单手挥手,添加纸鹤漂浮肩旁,应用丁达尔效应顶光 | Change girl pose to standing with hand on hip and waving, add floating paper crane near shoulder, apply Tyndall effect top lighting | Compose Edit | [800, 1216] | |
99 | 移除女子耳机,改为跳跃欢呼姿势并举起双臂 | Remove headphones from woman, change pose to jumping for joy with arms raised | Compose Edit | [1136, 848] | |
100 | 移除手中彩色气球 替换背景为阳光草地 | Remove colorful balloons from hand Replace backdrop with sunlit meadow | Compose Edit | [800, 1216] |
CPI-Bench
Introduction
CPI-Bench is a comprehensive suite of benchmarks designed to evaluate whether an image generation/editing model is truly capable of handling diverse, real-world, and knowledge-intensive tasks. It consists of three complementary subsets:
| Benchmark | Description | Data Files |
|---|---|---|
| CPI-General-Benchmark | General-purpose image editing tasks covering a wide range of task types | CPI_general_benchmark/CPI_general_benchmark-*.parquet |
| CPI-Practical-Benchmark | Image editing tasks grounded in everyday, real-life scenarios | CPI_practical_benchmark/CPI_practical_benchmark-*.parquet |
| CPI-Intelligent-Benchmark | Image editing tasks that require domain knowledge and multi-step reasoning, with reference input image(s) | CPI_intelligent_benchmark-*.parquet |
Each sample provides an editing/generation instruction (and, for image-editing tasks, one or more reference images). Models are expected to produce an output image accordingly, which is then scored by a VLM-as-Judge (e.g., Gemini) across multiple quality dimensions.
✨ Key Features
- Three Complementary Subsets: covers general-purpose editing, life-scenario editing, and knowledge-intensive reasoning for image-editing (i2i) settings.
- Multi-Image Input Support:
sourcefields may contain one or multiple reference images, supporting complex multi-image editing scenarios. - Bilingual Instructions: Chinese and English instructions are provided for every subset, enabling cross-lingual evaluation.
- Reasoning-Aware Annotations: the reasoning subsets additionally provide a
rationalefield — a reference reasoning trace from instruction to expected result, used as guidance material (not a hard ground truth) during scoring. - VLM-Driven Automatic Evaluation: each subset ships with a ready-to-use, multi-dimension VLM-as-Judge evaluation toolkit (see below).
✨ Key Attributes
CPI-General-Benchmark / CPI-Practical-Benchmark fields:
| Field | Description |
|---|---|
id |
Unique sample ID |
task |
Task category, used to select the corresponding scoring prompt template |
a_to_b_instructions |
Editing instruction in Chinese |
a_to_b_instructions_eng |
Editing instruction in English |
target_resolution |
Target output resolution |
source |
List[PIL.Image] — one or more reference input images |
CPI-Intelligent-Benchmark fields:
| Field | Description |
|---|---|
id |
Unique sample ID |
expert_domain |
Domain category, formatted as "<domain>-<subtask>" |
a_to_b_instructions |
Editing instruction in Chinese |
a_to_b_instructions_eng |
Editing instruction in English |
rationale |
Reference reasoning trace (guidance material for scoring; may be empty) |
target_resolution |
Target output resolution |
source |
List[PIL.Image] — one or more reference input images |
Loading
from datasets import load_dataset
# Load a specific subset directly from the Hub (recommended)
dataset = load_dataset("TaobaoTmall-AlgorithmProducts/CPI-benchmark", "general", split="train")
print(dataset)
print(dataset[0])
# Other available configs: "practical", "intelligent"
dataset = load_dataset("TaobaoTmall-AlgorithmProducts/CPI-benchmark", "intelligent", split="train")
# Alternatively, download the repo manually and load from local parquet files
dataset = load_dataset(
"parquet",
data_files="/path/to/local/CPI_general_benchmark/CPI_general_benchmark-*.parquet",
split="train",
)
CPI-Bench - Evaluation Toolkit
An automated evaluation toolkit for image generation/editing models, powered by VLM-as-Judge (e.g., Gemini). Given a set of model outputs, the toolkit scores each sample across multiple quality dimensions and produces an aggregated report.
The toolkit is located under bench_eval_code/ and provides one
evaluation script per subset:
| Subset | Script | Prompt Config |
|---|---|---|
| CPI-General-Benchmark | bench_eval_code/eval_general_practical.py --benchmark general |
bench_eval_code/prompts/general_prompts.json |
| CPI-Practical-Benchmark | bench_eval_code/eval_general_practical.py --benchmark practical |
bench_eval_code/prompts/practical_prompts.json |
| CPI-Intelligent-Benchmark | bench_eval_code/eval_intelligent.py |
bench_eval_code/prompts/intelligent_prompts.json |
Scoring Dimensions
CPI-General-Benchmark / CPI-Practical-Benchmark
Each task type is mapped to a task-specific scoring prompt template (defined in
general_prompts.json / practical_prompts.json). The judge VLM outputs a score for each
dimension in the format DimensionName: score, and the sample's final score is the
arithmetic mean across all dimensions returned for that task.
CPI-Intelligent-Benchmark — 3 dimensions, each scored 1.0–5.0:
| Dimension | Weight | What it measures |
|---|---|---|
| Knowledge Reasoning | 45% | Factual/domain-knowledge correctness, fused with rationale as reference guidance |
| Visual Quality | 30% | Overall visual/aesthetic quality of the generated result |
| Input Consistency | 25% | Consistency between the result and the reference input image(s) |
The final score is a weighted sum of the three dimensions above. If the Knowledge Reasoning score is ≤ 2, the final score is additionally multiplied by 0.6 as a penalty for factual/knowledge errors.
How It Works
- General / Practical: a single VLM call per sample — sends
[reference image(s)..., result, scoring prompt]and parses per-dimension scores from the response. - Intelligent: a split-call strategy — one VLM call per dimension (Knowledge Reasoning, Visual Quality, and for i2i, Input Consistency), so the judge can focus on one aspect at a time for more reliable scoring.
Input Format
First, generate your model's outputs for each sample. If you are not sure which row corresponds to which image(s)/instruction, use the export helper first — it auto-detects the dataset schema and works for all three subsets:
python bench_eval_code/export_samples.py \
--dataset_path "/path/to/CPI_general_benchmark/CPI_general_benchmark-*.parquet" \
--output_dir ./exported_general \
--lang eng \
--workers 16
This produces:
source_images/— reference input images per samplesamples.jsonl— per-sample metadata:sample_index,id,task,instruction,rationale(if present)result_template.jsonl— a template result file; fill in theresultfield with your model's output path after inference
Then prepare a JSONL file mapping each benchmark sample index to your model's generated result image:
{"sample_index": 0, "result": "/path/to/result_0.png"}
{"sample_index": 1, "result": "/path/to/result_1.png"}
{"sample_index": 2, "result": "/path/to/result_2.png"}
sample_index: the 0-based row index into the loaded HF datasetresult: path to your model's generated image for that sample
Usage
CPI-General-Benchmark / CPI-Practical-Benchmark:
python bench_eval_code/eval_general_practical.py \
--benchmark general \
--dataset_path "/path/to/CPI_general_benchmark/CPI_general_benchmark-*.parquet" \
--result_jsonl "/path/to/my_results.jsonl" \
--prompts_json bench_eval_code/prompts/general_prompts.json \
--output_dir eval_output/my_model_general \
--api_key "YOUR_API_KEY" \
--lang eng \
--workers 8
Use --benchmark practical and bench_eval_code/prompts/practical_prompts.json to evaluate
the Practical benchmark instead.
CPI-Intelligent-Benchmark:
python bench_eval_code/eval_intelligent.py \
--dataset_path "/path/to/CPI_intelligent_benchmark/CPI_intelligent_benchmark-*.parquet" \
--result_jsonl "/path/to/my_results_i2i.jsonl" \
--prompts_json bench_eval_code/prompts/intelligent_prompts.json \
--output_dir eval_output/my_model_intelligent \
--api_key "YOUR_API_KEY" \
--lang eng \
--workers 8
Output
Each script produces two files in --output_dir:
cases.jsonl— per-sample scoring details (per-dimension scores + raw VLM responses)summary.json— aggregated scores, broken down by task type / domain / dimension
Features
- Resume support: if evaluation is interrupted, re-running the same command
will skip already-scored samples (found in
cases.jsonl) and continue from where it left off. Use--no_resumeto force a full re-run. - Multi-key rotation: pass multiple API keys (comma-separated via
--api_key) to distribute requests across keys and avoid rate limits. - Concurrent scoring: use
--workersto control parallelism for faster evaluation. - Custom VLM endpoint: any OpenAI-compatible API can be used via
--base_urland--model.
File Structure
bench_eval_code/
├── bench_utils.py # Shared utilities: API key pool, image helpers, retry-wrapped VLM caller
├── eval_general_practical.py # Evaluation script for General / Practical benchmarks
├── eval_intelligent.py # Evaluation script for Intelligent benchmark
├── export_samples.py # Dataset export helper (auto-detects schema, multi-threaded)
└── prompts/
├── general_prompts.json
├── practical_prompts.json
└── intelligent_prompts.json
License
CPI-Bench is released under the Creative Commons Attribution–NonCommercial–NoDerivatives (CC BY-NC-ND 4.0) license.
- ✅ Free for academic research purposes only
- ❌ Commercial use is prohibited
By using this dataset, you agree to comply with the applicable license terms.
🖊️ Citation
If you find CPI-Bench useful for your research, please consider citing:
- Downloads last month
- 61