File size: 34,087 Bytes
369346d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 | <div align="center">
<img src="assets/logo/lance-logo.webp" alt="Lance logo" width="300">
<h1 align="center"><sup>Lance: Unified Multimodal Modeling by Multi-Task Synergy</sup></h1>
<p>
<strong>
<a href="https://scholar.google.com.hk/citations?user=FXxoQlsAAAAJ&hl=zh-CN&oi=ao" style="text-decoration: none; color: inherit;">Fengyi Fu</a><sup>*</sup>,
<a href="https://corleone-huang.github.io/" style="text-decoration: none; color: inherit;">Mengqi Huang</a><sup>*,✉</sup>,
<a href="https://scholar.google.com.hk/citations?user=9ER6nVkAAAAJ&hl=zh-CN&oi=ao" style="text-decoration: none; color: inherit;">Shaojin Wu</a><sup>*</sup>,
Yunsheng Jiang<sup>*</sup>,
Yufei Huo,
<a href="https://guojianzhu.com/" style="text-decoration: none; color: inherit;">Jianzhu Guo</a><sup>✉,§</sup>
</strong><br>
Hao Li,
Yinghang Song,
Fei Ding,
Qian He,
Zheren Fu,
Zhendong Mao,
Yongdong Zhang
<br>
<em>ByteDance</em>
<br>
<sup>*</sup> 共同一作 <sup>✉</sup> 通讯作者 <sup>§</sup> Project lead
</p>
<p>
<a href="https://lance-project.github.io/" style="text-decoration: none; margin: 0 8px;"><img src="https://img.shields.io/badge/Website-Lance-blue?style=flat-square&logo=github" alt="Website"></a>
<a href="https://lance-project.github.io/assets/lance.pdf" style="text-decoration: none; margin: 0 8px;"><img src="https://img.shields.io/badge/Paper-arXiv-red?style=flat-square&logo=arxiv" alt="arXiv"></a>
<a href="https://github.com/bytedance/Lance" style="text-decoration: none; margin: 0 8px;"><img src="https://img.shields.io/badge/Lance-Codebase-536af5?color=536af5&logo=github" alt="Github"></a>
<br>
<a href="./README.md"><ins>English</ins></a> | 简体中文
</p>
</div>
## 🌟 亮点
Lance 是一个轻量级、原生统一的多模态模型,在单一框架下同时支持 **图像与视频的理解、生成和编辑**。
- **3B 规模高效强大。** 仅使用 **3B active parameters**,Lance 即可在图像生成、图像编辑和视频生成等基准上取得强劲表现。
- **从零训练。** Lance 采用分阶段多任务训练配方,在 **128 张 A100 GPU** 的预算内从零完成训练。
<div align="center">
<img src="assets/benchmarks/benchmark-overview.png" alt="Lance benchmark overview across image generation, image editing, video generation, and video understanding" width="980">
</div>
## 🎨 演示
### 文生视频
<table>
<tr>
<td><a href="assets/text-to-video/videos/text-to-video-demo-01.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-01.gif" width="100%"></a></td>
<td><a href="assets/text-to-video/videos/text-to-video-demo-02.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-02.gif" width="100%"></a></td>
<td><a href="assets/text-to-video/videos/text-to-video-demo-03.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-03.gif" width="100%"></a></td>
<td><a href="assets/text-to-video/videos/text-to-video-demo-04.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-04.gif" width="100%"></a></td>
</tr>
<tr>
<td><a href="assets/text-to-video/videos/text-to-video-demo-05.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-05.gif" width="100%"></a></td>
<td><a href="assets/text-to-video/videos/text-to-video-demo-06.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-06.gif" width="100%"></a></td>
<td><a href="assets/text-to-video/videos/text-to-video-demo-07.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-07.gif" width="100%"></a></td>
<td><a href="assets/text-to-video/videos/text-to-video-demo-08.mp4"><img src="assets/text-to-video/previews/text-to-video-demo-08.gif" width="100%"></a></td>
</tr>
</table>
### 视频编辑
<table>
<tr>
<td><a href="assets/video-editing/videos/video-editing-demo-01.mp4"><img src="assets/video-editing/previews/video-editing-demo-01.gif" width="100%"></a></td>
<td><a href="assets/video-editing/videos/video-editing-demo-02.mp4"><img src="assets/video-editing/previews/video-editing-demo-02.gif" width="100%"></a></td>
<td><a href="assets/video-editing/videos/video-editing-demo-03.mp4"><img src="assets/video-editing/previews/video-editing-demo-03.gif" width="100%"></a></td>
<td><a href="assets/video-editing/videos/video-editing-demo-04.mp4"><img src="assets/video-editing/previews/video-editing-demo-04.gif" width="100%"></a></td>
</tr>
<tr>
<td><a href="assets/video-editing/videos/video-editing-demo-05.mp4"><img src="assets/video-editing/previews/video-editing-demo-05.gif" width="100%"></a></td>
<td><a href="assets/video-editing/videos/video-editing-demo-06.mp4"><img src="assets/video-editing/previews/video-editing-demo-06.gif" width="100%"></a></td>
<td><a href="assets/video-editing/videos/video-editing-demo-07.mp4"><img src="assets/video-editing/previews/video-editing-demo-07.gif" width="100%"></a></td>
<td><a href="assets/video-editing/videos/video-editing-demo-08.mp4"><img src="assets/video-editing/previews/video-editing-demo-08.gif" width="100%"></a></td>
</tr>
</table>
### 多轮一致性编辑
<div align="center">
<a href="assets/multi-turn-editing/videos/multi-turn-editing-demo-01.mp4">
<img src="assets/multi-turn-editing/previews/multi-turn-editing-demo-01.gif" width="100%">
</a>
</div>
### 智能视频生成
<table>
<tr>
<td><a href="assets/intelligent-video/videos/intelligent-video-demo-01.mp4"><img src="assets/intelligent-video/previews/intelligent-video-demo-01.gif" width="100%"></a></td>
<td><a href="assets/intelligent-video/videos/intelligent-video-demo-02.mp4"><img src="assets/intelligent-video/previews/intelligent-video-demo-02.gif" width="100%"></a></td>
<td><a href="assets/intelligent-video/videos/intelligent-video-demo-03.mp4"><img src="assets/intelligent-video/previews/intelligent-video-demo-03.gif" width="100%"></a></td>
<td><a href="assets/intelligent-video/videos/intelligent-video-demo-04.mp4"><img src="assets/intelligent-video/previews/intelligent-video-demo-04.gif" width="100%"></a></td>
</tr>
</table>
### 视频理解
<div align="center">
<table>
<tr>
<td align="left" valign="top" width="33%">
<a href="assets/video-understanding/videos/video-understanding-vqa-01.mp4">
<img src="assets/video-understanding/previews/video-understanding-vqa-01.gif" width="100%">
</a>
<p><strong>问题:</strong> How many times did the person launch objects on the table? Options: (A) 3 (B) 2 (C) 4</p>
<p><strong>回答:</strong> (A) 3</p>
</td>
<td align="left" valign="top" width="33%">
<a href="assets/video-understanding/videos/video-understanding-vqa-02.mp4">
<img src="assets/video-understanding/previews/video-understanding-vqa-02.gif" width="100%">
</a>
<p><strong>问题:</strong> The person makes sets of repeated actions. How many distinct repeated actions did the person do? Options: (A) 2 (B) 3 (C) 4</p>
<p><strong>回答:</strong> (A) 2</p>
</td>
<td align="left" valign="top" width="33%">
<a href="assets/video-understanding/videos/video-understanding-vqa-03.mp4">
<img src="assets/video-understanding/previews/video-understanding-vqa-03.gif" width="100%">
</a>
<p><strong>问题:</strong> In which direction does the purple sphere move in the video? Options: (A) Down and to the right. (B) Up and to the left. (C) Up and to the right. (D) The object is stationary.</p>
<p><strong>回答:</strong> (A) Down and to the right.</p>
</td>
</tr>
<tr>
<td align="left" valign="top" width="33%">
<a href="assets/video-understanding/videos/video-understanding-vqa-04.mp4">
<img src="assets/video-understanding/previews/video-understanding-vqa-04.gif" width="100%">
</a>
<p><strong>问题:</strong> What is the unrealistic phenomenon displayed in the video? Options: (A) The man can manipulate time via phone. (B) Man grabs an object through a phone screen. (C) Chocolate transforms into different objects. (D) Visible means of propulsion enables flight.</p>
<p><strong>回答:</strong> (B) Man grabs an object through a phone screen.</p>
</td>
<td align="left" valign="top" width="33%">
<a href="assets/video-understanding/videos/video-understanding-caption-short-01.mp4">
<img src="assets/video-understanding/previews/video-understanding-caption-short-01.gif" width="100%">
</a>
<p><strong>问题:</strong> Offer a succinct account of the culinary process shown in this video.</p>
<p><strong>回答:</strong> Add tomato puree and mix it well with chicken pieces.</p>
</td>
<td align="left" valign="top" width="33%">
<a href="assets/video-understanding/videos/video-understanding-caption-long-01.mp4">
<img src="assets/video-understanding/previews/video-understanding-caption-long-01.gif" width="100%">
</a>
<p><strong>问题:</strong> Provide a detailed description of the given video, capturing its key moments.</p>
<p><strong>回答:</strong> In a sunlit meadow, a small tortoiseshell butterfly rests on a purple flower. A bee, with black and yellow stripes, lands on the same flower. The butterfly flaps its wings gently, while the bee busies itself, collecting nectar. The flower sways slightly in the breeze. The butterfly then takes off, and the bee follows, both heading to the next flower. The scene is a vivid display of insect interaction in a natural setting, with the colors of the butterfly and the bee contrasting against the green background of the meadow. The video captures this peaceful moment in a short 6-second duration.</p>
</td>
</tr>
</table>
</div>
### 文生图
<div align="center">
<img src="assets/text-to-image/text-to-image-overview.webp" alt="Lance text-to-image generation examples" width="100%">
</div>
### 图像编辑
<div align="center">
<img src="assets/image-editing/image-editing-overview.webp" alt="Lance image editing examples" width="100%">
</div>
### 图像理解
<div align="center">
<table>
<tr>
<td align="left" valign="top" width="33%">
<img src="assets/image-understanding/cases/image-understanding-case-01.png" alt="Pie chart reasoning case" width="100%">
<p><strong>问题:</strong> Is the largest segment greater than sum of all the other segments?</p>
<p><strong>回答:</strong> Yes, the largest segment in the pie chart is the blue one, which is the most populous segment.</p>
</td>
<td align="left" valign="top" width="33%">
<img src="assets/image-understanding/cases/image-understanding-case-02.png" alt="Survey chart about border security priorities" width="100%">
<p><strong>问题:</strong> What percentage of respondents want better border security?</p>
<p><strong>回答:</strong> 29%</p>
</td>
<td align="left" valign="top" width="33%">
<img src="assets/image-understanding/cases/image-understanding-case-03.png" alt="License plate recognition case" width="100%">
<p><strong>问题:</strong> What is the license plate number of the car?</p>
<p><strong>回答:</strong> The license plate number of the car is BX62 BFY.</p>
</td>
</tr>
<tr>
<td align="left" valign="top" width="33%">
<img src="assets/image-understanding/cases/image-understanding-case-04.png" alt="Market research chart reasoning case" width="100%">
<p><strong>问题:</strong> According to the data from the proprietary market research, how much amount was spent on the promotional meetings and events during 1998?</p>
<p><strong>回答:</strong> According to the data from the proprietary market research, the total amount spent on the promotional meetings and events during 1998 was approximately $1.3 billion.</p>
</td>
<td align="left" valign="top" width="33%">
<img src="assets/image-understanding/cases/image-understanding-case-05.png" alt="Colosseum description case" width="100%">
<p><strong>问题:</strong> What is the appearance of the Colosseum in Rome, Italy?</p>
<p><strong>回答:</strong> The Colosseum in Rome, Italy is a magnificent ancient amphitheater made of stone and concrete. It is characterized by its large, arched openings and its semi-circular shape. The Colosseum has been partially restored, and its original color has faded, but the architectural details, like the columns and the semi-circular arches, are still visible. The lighting in the image highlights the grandeur and historical significance of the Colosseum, making it stand out against the backdrop of the evening sky.</p>
</td>
<td align="left" valign="top" width="33%">
<img src="assets/image-understanding/cases/image-understanding-case-06.png" alt="Total solar eclipse case" width="100%">
<p><strong>问题:</strong> How does a total solar eclipse look like from Earth?</p>
<p><strong>回答:</strong> A total solar eclipse looks like a dark circle with a bright, white outer edge. This is a result of the Earth's rotation and the Earth's shadow, which partially obscures the sun's light. The bright white edge of the eclipse is caused by the sun's high energy and its interaction with the Earth's atmosphere, while the dark part of the eclipse is due to the Earth's shadow and the surrounding air currents. The solar eclipse's shape, with its bright white edge and dark center, is similar to the shape of a full moon or a dark disk. It is a natural phenomenon that occurs in the atmosphere of the Earth and is an important part of the solar system.</p>
</td>
</tr>
</table>
</div>
## 🚀 安装
### 推荐环境
- **软件环境:** Python 3.10+,CUDA 12.4+(必需)
- **硬件环境:** 推理至少需要一张显存不低于 40GB 的 GPU
### 安装步骤
```bash
bash ./setup_env.sh
```
### 下载模型权重
请从 [Lance-3B(HuggingFace 链接)](https://huggingface.co/bytedance-research/Lance) 下载所需的全部模型权重,并放置到 `downloads/` 目录下。
## 📚 使用方法
### 推理
Lance 为生成、编辑和理解任务提供了统一的命令行入口:
```bash
bash inference_lance.sh
```
- 运行前,请先在 `inference_lance.sh` 顶部配置推理参数。
- **支持任务:** `t2i`、`t2v`、`image_edit`、`video_edit`、`x2t_image` 和 `x2t_video`。你也可以在 `inference_lance.py` 中修改 `TASK_DEFAULT_CONFIGS`,自定义每个任务默认使用的数据样例。
#### 可用任务
| 任务名 | 说明 | 示例 JSON |
|------------------------|--------------------------------------------------|----------------------------------------------|
| `t2v` | 文生视频 | `config/examples/t2v_example.json` |
| `t2i` | 文生图 | `config/examples/t2i_example.json` |
| `image_edit` | 图像编辑 | `config/examples/image_edit_example.json` |
| `video_edit` | 视频编辑 | `config/examples/video_edit_example.json` |
| `x2t_image` | 图像理解 | `config/examples/x2t_image_example.json` |
| `x2t_video` | 视频理解 | `config/examples/x2t_video_example.json` |
关于理解任务的示例文件:
- `config/examples/x2t_image_example.json`:用于图像理解示例,包括视觉问答和基于图像的推理。
- `config/examples/x2t_video_example.json`:用于视频理解示例,包括视频问答和视频描述。
#### 参数说明
你可以在 `inference_lance.sh` 顶部配置以下超参数:
| 参数 | 默认值 | 说明 |
| --- | --- | --- |
| `MODEL_PATH` | `"downloads/lance_3b"` | 下载后的 Lance 模型权重路径。 |
| `NUM_GPUS` | `1` | 用于推理的 GPU 数量。 |
| `VALIDATION_NUM_TIMESTEPS` | `30` | 去噪步数(例如 30 或 50)。 |
| `VALIDATION_TIMESTEP_SHIFT` | `3.5` | Flow matching 调度中的 timestep shift 参数。 |
| `CFG_TEXT_SCALE` | `4.0` | 文本条件的 CFG(Classifier-Free Guidance)系数。 |
| `VALIDATION_DATA_SEED` | `42` | 用于复现实验的随机种子。 |
| `NUM_FRAMES` | `50` | 视频生成帧数(最大 121)。*图像任务不使用该参数。* |
| `VIDEO_HEIGHT` / `VIDEO_WIDTH`| `768` | 空间分辨率。*编辑任务不使用该参数(由输入图像/视频决定)。* |
| `RESOLUTION` | `"video_480p"` | 基础分辨率预设(如 `image_768res` 或 `video_480p`)。 |
### Gradio
```python
python lance_gradio_t2v_v2t.py --gpus 0 --server-port 7860
```
### 基准评测
#### DPG-Bench 评测
<div align="center">
<table>
<thead>
<tr>
<th align="left">模型</th>
<th align="center"># Params.</th>
<th align="center">Global</th>
<th align="center">Entity</th>
<th align="center">Attribute</th>
<th align="center">Relation</th>
<th align="center">Other</th>
<th align="center">Overall</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" colspan="8"><i>仅生成模型</i></td>
</tr>
<tr>
<td align="left">SDXL</td><td align="center">3.5B</td><td align="center">83.27</td><td align="center">82.43</td><td align="center">80.91</td><td align="center">86.76</td><td align="center">80.41</td><td align="center">74.65</td>
</tr>
<tr>
<td align="left">DALL-E 3</td><td align="center">-</td><td align="center">90.97</td><td align="center">89.61</td><td align="center">88.39</td><td align="center">90.58</td><td align="center">89.83</td><td align="center">83.50</td>
</tr>
<tr>
<td align="left">SD3-Medium</td><td align="center">2B</td><td align="center">87.90</td><td align="center">91.01</td><td align="center">88.83</td><td align="center">80.70</td><td align="center">88.68</td><td align="center">84.08</td>
</tr>
<tr>
<td align="left">FLUX.1-dev</td><td align="center">12B</td><td align="center">74.35</td><td align="center">90.00</td><td align="center">88.96</td><td align="center">90.87</td><td align="center">88.33</td><td align="center">83.84</td>
</tr>
<tr>
<td align="left">Qwen-Image</td><td align="center">20B</td><td align="center">91.32</td><td align="center">91.56</td><td align="center">92.02</td><td align="center">94.31</td><td align="center">92.73</td><td align="center">88.32</td>
</tr>
<tr>
<td align="left" colspan="8"><i>统一模型</i></td>
</tr>
<tr>
<td align="left">Janus-Pro-7B</td><td align="center">7B</td><td align="center">86.90</td><td align="center">88.90</td><td align="center">89.40</td><td align="center">89.32</td><td align="center">89.48</td><td align="center">84.19</td>
</tr>
<tr>
<td align="left">OmniGen2</td><td align="center">4B</td><td align="center">88.81</td><td align="center">88.83</td><td align="center">90.18</td><td align="center">89.37</td><td align="center">90.27</td><td align="center">83.57</td>
</tr>
<tr>
<td align="left">Show-o2</td><td align="center">7B</td><td align="center">89.00</td><td align="center"><b>91.78</b></td><td align="center">89.96</td><td align="center">91.81</td><td align="center"><b>91.64</b></td><td align="center">86.14</td>
</tr>
<tr>
<td align="left">BAGEL</td><td align="center">7B</td><td align="center">88.94</td><td align="center">90.37</td><td align="center"><u>91.29</u></td><td align="center">90.82</td><td align="center">88.67</td><td align="center">85.07</td>
</tr>
<tr>
<td align="left">InternVL-U</td><td align="center">1.7B</td><td align="center"><u>90.39</u></td><td align="center">90.78</td><td align="center">90.68</td><td align="center">90.29</td><td align="center">88.77</td><td align="center">85.18</td>
</tr>
<tr>
<td align="left">TUNA</td><td align="center">7B</td><td align="center"><b>90.42</b></td><td align="center"><u>91.68</u></td><td align="center">90.94</td><td align="center"><u>91.87</u></td><td align="center"><u>90.73</u></td><td align="center"><b>86.76</b></td>
</tr>
<tr>
<td align="left">TUNA-2</td><td align="center">7B</td><td align="center">89.50</td><td align="center">91.40</td><td align="center"><b>92.07</b></td><td align="center">91.91</td><td align="center">88.81</td><td align="center"><u>86.54</u></td>
</tr>
<tr bgcolor="#f4e6ff">
<td align="left">🌟 <b>Lance (Ours)</b></td><td align="center"><b>3B</b></td><td align="center"><b>83.89</b></td><td align="center"><b>91.07</b></td><td align="center"><b>89.36</b></td><td align="center"><b>93.38</b></td><td align="center"><b>80.80</b></td><td align="center"><b>84.67</b></td>
</tr>
</tbody>
</table>
</div>
#### GenEval 评测
<div align="center">
<table>
<thead>
<tr>
<th align="left">模型</th>
<th align="center"># Params.</th>
<th align="center">1-Obj.</th>
<th align="center">2-Obj.</th>
<th align="center">Count</th>
<th align="center">Colors</th>
<th align="center">Position</th>
<th align="center">Attr.</th>
<th align="center">Overall</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" colspan="9"><i>仅生成模型</i></td>
</tr>
<tr>
<td align="left">SDXL</td><td align="center">3.5B</td><td align="center">0.98</td><td align="center">0.74</td><td align="center">0.39</td><td align="center">0.85</td><td align="center">0.15</td><td align="center">0.23</td><td align="center">0.55</td>
</tr>
<tr>
<td align="left">DALL-E 3</td><td align="center">-</td><td align="center">0.96</td><td align="center">0.87</td><td align="center">0.47</td><td align="center">0.83</td><td align="center">0.43</td><td align="center">0.45</td><td align="center">0.67</td>
</tr>
<tr>
<td align="left">SD3-Medium</td><td align="center">2B</td><td align="center">0.99</td><td align="center">0.94</td><td align="center">0.72</td><td align="center">0.89</td><td align="center">0.33</td><td align="center">0.60</td><td align="center">0.74</td>
</tr>
<tr>
<td align="left">FLUX.1-dev</td><td align="center">12B</td><td align="center">0.98</td><td align="center">0.93</td><td align="center">0.75</td><td align="center">0.93</td><td align="center">0.68</td><td align="center">0.65</td><td align="center">0.82</td>
</tr>
<tr>
<td align="left">Qwen-Image</td><td align="center">20B</td><td align="center">0.99</td><td align="center">0.92</td><td align="center">0.89</td><td align="center">0.88</td><td align="center">0.76</td><td align="center">0.77</td><td align="center">0.87</td>
</tr>
<tr>
<td align="left" colspan="9"><i>统一模型</i></td>
</tr>
<tr>
<td align="left">Janus-Pro-7B</td><td align="center">7B</td><td align="center"><u>0.99</u></td><td align="center">0.89</td><td align="center">0.59</td><td align="center">0.90</td><td align="center">0.79</td><td align="center">0.66</td><td align="center">0.80</td>
</tr>
<tr>
<td align="left">OmniGen2</td><td align="center">4B</td><td align="center"><b>1.00</b></td><td align="center">0.95</td><td align="center">0.64</td><td align="center">0.88</td><td align="center">0.55</td><td align="center">0.76</td><td align="center">0.80</td>
</tr>
<tr>
<td align="left">Show-o2</td><td align="center">7B</td><td align="center"><b>1.00</b></td><td align="center">0.87</td><td align="center">0.58</td><td align="center">0.92</td><td align="center">0.52</td><td align="center">0.62</td><td align="center">0.76</td>
</tr>
<tr>
<td align="left">BAGEL</td><td align="center">7B</td><td align="center">0.98</td><td align="center">0.95</td><td align="center"><b>0.84</b></td><td align="center"><u>0.95</u></td><td align="center">0.78</td><td align="center">0.77</td><td align="center">0.88</td>
</tr>
<tr>
<td align="left">Mogao</td><td align="center">7B</td><td align="center"><b>1.00</b></td><td align="center"><b>0.97</b></td><td align="center"><u>0.83</u></td><td align="center">0.93</td><td align="center">0.84</td><td align="center">0.80</td><td align="center"><u>0.89</u></td>
</tr>
<tr>
<td align="left">InternVL-U</td><td align="center">1.7B</td><td align="center"><u>0.99</u></td><td align="center">0.94</td><td align="center">0.74</td><td align="center">0.91</td><td align="center">0.77</td><td align="center">0.74</td><td align="center">0.85</td>
</tr>
<tr>
<td align="left">TUNA</td><td align="center">7B</td><td align="center"><b>1.00</b></td><td align="center"><b>0.97</b></td><td align="center">0.81</td><td align="center">0.91</td><td align="center"><b>0.88</b></td><td align="center"><b>0.83</b></td><td align="center"><b>0.90</b></td>
</tr>
<tr>
<td align="left">TUNA-2</td><td align="center">7B</td><td align="center"><u>0.99</u></td><td align="center"><u>0.96</u></td><td align="center">0.80</td><td align="center">0.91</td><td align="center">0.84</td><td align="center">0.76</td><td align="center">0.87</td>
</tr>
<tr bgcolor="#f4e6ff">
<td align="left">🌟 <b>Lance (Ours)</b></td><td align="center"><b>3B</b></td><td align="center"><b>1.00</b></td><td align="center"><b>0.94</b></td><td align="center"><b>0.84</b></td><td align="center"><b>0.97</b></td><td align="center"><b>0.87</b></td><td align="center"><b>0.81</b></td><td align="center"><b>0.90</b></td>
</tr>
</tbody>
</table>
</div>
#### GEdit-Bench 评测
<div align="center">
<table>
<thead>
<tr>
<th align="left">模型</th>
<th align="center"># Params.</th>
<th align="center">BC</th>
<th align="center">CA</th>
<th align="center">MM</th>
<th align="center">MC</th>
<th align="center">PB</th>
<th align="center">ST</th>
<th align="center">SA</th>
<th align="center">SR</th>
<th align="center">SRp</th>
<th align="center">TM</th>
<th align="center">TT</th>
<th align="center">Avg/G_O</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" colspan="14"><i>仅生成模型</i></td>
</tr>
<tr>
<td align="left">Gemini 2.0</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">-</td><td align="center">6.32</td>
</tr>
<tr>
<td align="left">GPT Image 1</td><td align="center">-</td><td align="center">6.96</td><td align="center">6.85</td><td align="center">7.10</td><td align="center">5.41</td><td align="center">6.74</td><td align="center">7.44</td><td align="center">7.51</td><td align="center">8.73</td><td align="center">8.55</td><td align="center">8.45</td><td align="center">8.69</td><td align="center">7.49</td>
</tr>
<tr>
<td align="left">Qwen-Image-Edit</td><td align="center">20B</td><td align="center">8.23</td><td align="center">8.30</td><td align="center">7.33</td><td align="center">8.05</td><td align="center">7.49</td><td align="center">6.74</td><td align="center">8.57</td><td align="center">8.09</td><td align="center">8.29</td><td align="center">8.48</td><td align="center">8.50</td><td align="center">8.01</td>
</tr>
<tr>
<td align="left" colspan="14"><i>统一模型</i></td>
</tr>
<tr>
<td align="left">Lumina-DiMOO</td><td align="center">8B</td><td align="center">3.43</td><td align="center">4.27</td><td align="center">3.08</td><td align="center">2.77</td><td align="center">4.74</td><td align="center">5.19</td><td align="center">4.44</td><td align="center">3.80</td><td align="center">4.38</td><td align="center">2.68</td><td align="center">4.20</td><td align="center">3.91</td>
</tr>
<tr>
<td align="left">Ovis-U1</td><td align="center">1.2B</td><td align="center"><u>7.49</u></td><td align="center">6.88</td><td align="center">6.21</td><td align="center">4.79</td><td align="center">5.98</td><td align="center"><u>6.46</u></td><td align="center">7.49</td><td align="center"><u>7.25</u></td><td align="center"><u>7.27</u></td><td align="center">4.48</td><td align="center">6.31</td><td align="center">6.42</td>
</tr>
<tr>
<td align="left">BAGEL</td><td align="center">7B</td><td align="center">7.32</td><td align="center">6.91</td><td align="center">6.38</td><td align="center">4.75</td><td align="center">4.57</td><td align="center">6.15</td><td align="center"><b>7.90</b></td><td align="center">7.16</td><td align="center">7.02</td><td align="center"><u>7.32</u></td><td align="center">6.22</td><td align="center">6.52</td>
</tr>
<tr>
<td align="left">InternVL-U</td><td align="center">1.7B</td><td align="center">7.08</td><td align="center">7.05</td><td align="center">6.38</td><td align="center"><u>7.02</u></td><td align="center"><u>6.03</u></td><td align="center">6.27</td><td align="center">7.13</td><td align="center">6.55</td><td align="center">6.33</td><td align="center">6.59</td><td align="center"><u>6.85</u></td><td align="center">6.66</td>
</tr>
<tr>
<td align="left">InternVL-U (w/ CoT)</td><td align="center">1.7B</td><td align="center">7.05</td><td align="center"><b>7.87</b></td><td align="center"><u>6.50</u></td><td align="center">6.99</td><td align="center">5.77</td><td align="center">6.10</td><td align="center">7.33</td><td align="center">7.16</td><td align="center">7.12</td><td align="center"><b>7.36</b></td><td align="center">6.46</td><td align="center"><u>6.88</u></td>
</tr>
<tr bgcolor="#f4e6ff">
<td align="left">🌟 <b>Lance (Ours)</b></td><td align="center"><b>3B</b></td><td align="center"><b>7.73</b></td><td align="center"><u>7.74</u></td><td align="center"><b>7.28</b></td><td align="center"><b>7.83</b></td><td align="center"><b>7.50</b></td><td align="center"><b>7.03</b></td><td align="center"><u>7.64</u></td><td align="center"><b>7.85</b></td><td align="center"><b>7.71</b></td><td align="center">4.46</td><td align="center"><b>7.57</b></td><td align="center"><b>7.30</b></td>
</tr>
</tbody>
</table>
</div>
#### VBench 评测(视频生成)
<div align="center">
<table>
<thead>
<tr>
<th align="left">类型</th>
<th align="left">Model</th>
<th align="center"># Params.</th>
<th align="center">Total Score ↑</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center" rowspan="12"><i>Gen. Only</i></td>
<td align="left">ModelScope</td><td align="center">1.7B</td><td align="center">75.75</td>
</tr>
<tr>
<td align="left">LaVie</td><td align="center">3B</td><td align="center">77.08</td>
</tr>
<tr>
<td align="left">Show-1</td><td align="center">6B</td><td align="center">78.93</td>
</tr>
<tr>
<td align="left">AnimateDiff-V2</td><td align="center">-</td><td align="center">80.27</td>
</tr>
<tr>
<td align="left">VideoCrafter-2.0</td><td align="center">-</td><td align="center">80.44</td>
</tr>
<tr>
<td align="left">CogVideoX</td><td align="center">5B</td><td align="center">81.61</td>
</tr>
<tr>
<td align="left">Kling</td><td align="center">-</td><td align="center">81.85</td>
</tr>
<tr>
<td align="left">Open-Sora-2.0</td><td align="center">-</td><td align="center">81.71</td>
</tr>
<tr>
<td align="left">Gen-3</td><td align="center">-</td><td align="center">82.32</td>
</tr>
<tr>
<td align="left">Step-Video-T2V</td><td align="center">30B</td><td align="center">81.83</td>
</tr>
<tr>
<td align="left">Hunyuan Video</td><td align="center">-</td><td align="center">83.43</td>
</tr>
<tr>
<td align="left">Wan2.1-T2V</td><td align="center">14B</td><td align="center">83.69</td>
</tr>
<tr>
<td align="center" rowspan="6"><i>Unified</i></td>
<td align="left">HaproOmni</td><td align="center">7B</td><td align="center">78.10</td>
</tr>
<tr>
<td align="left">Emu3</td><td align="center">8B</td><td align="center">80.96</td>
</tr>
<tr>
<td align="left">VILA-U</td><td align="center">7B</td><td align="center">74.01</td>
</tr>
<tr>
<td align="left">Show-o2</td><td align="center">2B</td><td align="center">81.34</td>
</tr>
<tr>
<td align="left">TUNA</td><td align="center">1.5B</td><td align="center"><u>84.06</u></td>
</tr>
<tr bgcolor="#f4e6ff">
<td align="left">🌟 <b>Lance (Ours)</b><sup>†</sup></td><td align="center"><b>3B</b></td><td align="center"><b>85.11</b></td>
</tr>
</tbody>
</table>
</div>
#### 运行基准评测
`benchmarks/` 目录下提供了可直接运行的基准评测脚本:
| 基准 | 模态 | 脚本 |
|------------------------|----------|---------------------------------------------------------------|
| GenEVAL(图像生成) | 图像 | `benchmarks/image_gen/GenEVAL/sample_GenEVAL.sh` |
| DPG(图像生成) | 图像 | `benchmarks/image_gen/DPG/sample_DPG.sh` |
| GEdit(图像编辑) | 图像 | `benchmarks/image_gen/GEdit/sample_GEdit.sh` |
| VBench(视频生成) | 视频 | `benchmarks/video_gen/Vbench/sample_vbench.sh` |
## 📄 许可证
Copyright 2025 Bytedance Ltd. and/or its affiliates.
## 💖 引用
如果 Lance 对您的项目或研究有帮助,欢迎 🌟 本仓库,并使用以下 BibTeX 引用我们的工作:
```bibtex
@misc{lance2026,
title = {Lance: Unified Multimodal Modeling by Multi-Task Synergy},
author = {Fengyi Fu and Mengqi Huang and Shaojin Wu and Yunsheng Jiang and Yufei Huo and Jianzhu Guo and Hao Li and Yinghang Song and Fei Ding and Qian He and Zheren Fu and Zhendong Mao and Yongdong Zhang},
year = {2026},
note = {Manuscript}
}
```
## 📞 联系方式
如有问题、反馈或合作需求,请联系 [Mengqi Huang](https://corleone-huang.github.io/) 和 [Jianzhu Guo](https://guojianzhu.com/)。
|