Duplicate from bytedance-research/Lance
Browse filesCo-authored-by: Fengyi <ffy2000@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +90 -0
- Lance_3B/generation_config.json +12 -0
- Lance_3B/llm_config.json +61 -0
- Lance_3B/merges.txt +0 -0
- Lance_3B/model.safetensors +3 -0
- Lance_3B/tokenizer.json +0 -0
- Lance_3B/vocab.json +0 -0
- Lance_3B_Video/generation_config.json +12 -0
- Lance_3B_Video/llm_config.json +61 -0
- Lance_3B_Video/merges.txt +0 -0
- Lance_3B_Video/model.safetensors +3 -0
- Lance_3B_Video/tokenizer.json +0 -0
- Lance_3B_Video/tokenizer_config.json +207 -0
- Lance_3B_Video/vocab.json +0 -0
- Qwen2.5-VL-ViT/config.json +21 -0
- Qwen2.5-VL-ViT/vit.safetensors +3 -0
- README.md +603 -0
- README_zh.md +575 -0
- Wan2.2_VAE.pth +3 -0
- assets/benchmarks/benchmark-overview.png +3 -0
- assets/image-editing/image-editing-overview.webp +3 -0
- assets/image-understanding/cases/image-understanding-case-01.png +3 -0
- assets/image-understanding/cases/image-understanding-case-02.png +0 -0
- assets/image-understanding/cases/image-understanding-case-03.png +3 -0
- assets/image-understanding/cases/image-understanding-case-04.png +3 -0
- assets/image-understanding/cases/image-understanding-case-05.png +3 -0
- assets/image-understanding/cases/image-understanding-case-06.png +3 -0
- assets/intelligent-video/previews/intelligent-video-demo-01.gif +0 -0
- assets/intelligent-video/previews/intelligent-video-demo-02.gif +0 -0
- assets/intelligent-video/previews/intelligent-video-demo-03.gif +0 -0
- assets/intelligent-video/previews/intelligent-video-demo-04.gif +0 -0
- assets/intelligent-video/videos/intelligent-video-demo-01.mp4 +0 -0
- assets/intelligent-video/videos/intelligent-video-demo-02.mp4 +0 -0
- assets/intelligent-video/videos/intelligent-video-demo-03.mp4 +0 -0
- assets/intelligent-video/videos/intelligent-video-demo-04.mp4 +0 -0
- assets/logo/lance-logo.webp +3 -0
- assets/multi-turn-editing/previews/multi-turn-editing-demo-01.gif +3 -0
- assets/multi-turn-editing/videos/multi-turn-editing-demo-01.mp4 +3 -0
- assets/text-to-image/text-to-image-overview.webp +3 -0
- assets/text-to-video/previews/text-to-video-demo-01.gif +3 -0
- assets/text-to-video/previews/text-to-video-demo-02.gif +3 -0
- assets/text-to-video/previews/text-to-video-demo-03.gif +3 -0
- assets/text-to-video/previews/text-to-video-demo-04.gif +3 -0
- assets/text-to-video/previews/text-to-video-demo-05.gif +3 -0
- assets/text-to-video/previews/text-to-video-demo-06.gif +3 -0
- assets/text-to-video/previews/text-to-video-demo-07.gif +3 -0
- assets/text-to-video/previews/text-to-video-demo-08.gif +3 -0
- assets/text-to-video/videos/text-to-video-demo-01.mp4 +3 -0
- assets/text-to-video/videos/text-to-video-demo-02.mp4 +3 -0
- assets/text-to-video/videos/text-to-video-demo-03.mp4 +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
assets/benchmarks/benchmark-overview.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/image-editing/image-editing-overview.webp filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/image-understanding/cases/image-understanding-case-01.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
assets/image-understanding/cases/image-understanding-case-03.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
assets/image-understanding/cases/image-understanding-case-04.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
assets/image-understanding/cases/image-understanding-case-05.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
assets/image-understanding/cases/image-understanding-case-06.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
assets/logo/lance-logo.webp filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
assets/multi-turn-editing/previews/multi-turn-editing-demo-01.gif filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
assets/multi-turn-editing/videos/multi-turn-editing-demo-01.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
assets/text-to-image/text-to-image-overview.webp filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
assets/text-to-video/previews/text-to-video-demo-01.gif filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
assets/text-to-video/previews/text-to-video-demo-02.gif filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
assets/text-to-video/previews/text-to-video-demo-03.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
assets/text-to-video/previews/text-to-video-demo-04.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
assets/text-to-video/previews/text-to-video-demo-05.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
assets/text-to-video/previews/text-to-video-demo-06.gif filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
assets/text-to-video/previews/text-to-video-demo-07.gif filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
assets/text-to-video/previews/text-to-video-demo-08.gif filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
assets/text-to-video/videos/text-to-video-demo-01.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
assets/text-to-video/videos/text-to-video-demo-02.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
assets/text-to-video/videos/text-to-video-demo-03.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
assets/text-to-video/videos/text-to-video-demo-04.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
assets/text-to-video/videos/text-to-video-demo-05.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
assets/text-to-video/videos/text-to-video-demo-06.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
assets/text-to-video/videos/text-to-video-demo-07.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
assets/text-to-video/videos/text-to-video-demo-08.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
assets/video-editing/previews/video-editing-demo-01.gif filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
assets/video-editing/previews/video-editing-demo-02.gif filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
assets/video-editing/previews/video-editing-demo-03.gif filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
assets/video-editing/previews/video-editing-demo-04.gif filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
assets/video-editing/previews/video-editing-demo-05.gif filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
assets/video-editing/previews/video-editing-demo-06.gif filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
assets/video-editing/previews/video-editing-demo-07.gif filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
assets/video-editing/previews/video-editing-demo-08.gif filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
assets/video-editing/videos/video-editing-demo-01.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
assets/video-editing/videos/video-editing-demo-02.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
assets/video-editing/videos/video-editing-demo-03.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
assets/video-editing/videos/video-editing-demo-04.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
assets/video-editing/videos/video-editing-demo-05.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
assets/video-editing/videos/video-editing-demo-06.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
assets/video-editing/videos/video-editing-demo-07.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
assets/video-editing/videos/video-editing-demo-08.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
assets/video-understanding/previews/video-understanding-caption-long-01.gif filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
assets/video-understanding/previews/video-understanding-caption-short-01.gif filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
assets/video-understanding/previews/video-understanding-vqa-01.gif filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
assets/video-understanding/previews/video-understanding-vqa-02.gif filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
assets/video-understanding/previews/video-understanding-vqa-03.gif filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
assets/video-understanding/previews/video-understanding-vqa-04.gif filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
assets/video-understanding/videos/video-understanding-caption-long-01.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
assets/video-understanding/videos/video-understanding-caption-short-01.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
assets/video-understanding/videos/video-understanding-vqa-01.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
assets/video-understanding/videos/video-understanding-vqa-02.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
assets/video-understanding/videos/video-understanding-vqa-03.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
assets/video-understanding/videos/video-understanding-vqa-04.mp4 filter=lfs diff=lfs merge=lfs -text
|
Lance_3B/generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"pad_token_id": 151643,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": [
|
| 6 |
+
151645,
|
| 7 |
+
151643
|
| 8 |
+
],
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": 0.000001,
|
| 11 |
+
"transformers_version": "4.49.0"
|
| 12 |
+
}
|
Lance_3B/llm_config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151643,
|
| 7 |
+
"eos_token_id": 151645,
|
| 8 |
+
"vision_start_token_id": 151652,
|
| 9 |
+
"vision_end_token_id": 151653,
|
| 10 |
+
"vision_token_id": 151654,
|
| 11 |
+
"image_token_id": 151655,
|
| 12 |
+
"video_token_id": 151656,
|
| 13 |
+
"hidden_act": "silu",
|
| 14 |
+
"hidden_size": 2048,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 11008,
|
| 17 |
+
"max_position_embeddings": 128000,
|
| 18 |
+
"max_window_layers": 70,
|
| 19 |
+
"model_type": "qwen2_5_vl",
|
| 20 |
+
"num_attention_heads": 16,
|
| 21 |
+
"num_hidden_layers": 36,
|
| 22 |
+
"num_key_value_heads": 2,
|
| 23 |
+
"rms_norm_eps": 1e-06,
|
| 24 |
+
"rope_theta": 1000000.0,
|
| 25 |
+
"sliding_window": 32768,
|
| 26 |
+
"tie_word_embeddings": true,
|
| 27 |
+
"torch_dtype": "bfloat16",
|
| 28 |
+
"transformers_version": "4.41.2",
|
| 29 |
+
"use_cache": true,
|
| 30 |
+
"use_sliding_window": false,
|
| 31 |
+
"vision_config": {
|
| 32 |
+
"depth": 32,
|
| 33 |
+
"hidden_act": "silu",
|
| 34 |
+
"hidden_size": 1280,
|
| 35 |
+
"intermediate_size": 3420,
|
| 36 |
+
"num_heads": 16,
|
| 37 |
+
"in_chans": 3,
|
| 38 |
+
"out_hidden_size": 2048,
|
| 39 |
+
"patch_size": 14,
|
| 40 |
+
"spatial_merge_size": 2,
|
| 41 |
+
"spatial_patch_size": 14,
|
| 42 |
+
"window_size": 112,
|
| 43 |
+
"fullatt_block_indexes": [
|
| 44 |
+
7,
|
| 45 |
+
15,
|
| 46 |
+
23,
|
| 47 |
+
31
|
| 48 |
+
],
|
| 49 |
+
"tokens_per_second": 2,
|
| 50 |
+
"temporal_patch_size": 2
|
| 51 |
+
},
|
| 52 |
+
"rope_scaling": {
|
| 53 |
+
"type": "mrope",
|
| 54 |
+
"mrope_section": [
|
| 55 |
+
16,
|
| 56 |
+
24,
|
| 57 |
+
24
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
"vocab_size": 151936
|
| 61 |
+
}
|
Lance_3B/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Lance_3B/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06e413d5827a06921fac327ce46db2569a05107ca9723076176809dca1294563
|
| 3 |
+
size 24740959248
|
Lance_3B/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Lance_3B/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Lance_3B_Video/generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"pad_token_id": 151643,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": [
|
| 6 |
+
151645,
|
| 7 |
+
151643
|
| 8 |
+
],
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": 0.000001,
|
| 11 |
+
"transformers_version": "4.49.0"
|
| 12 |
+
}
|
Lance_3B_Video/llm_config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151643,
|
| 7 |
+
"eos_token_id": 151645,
|
| 8 |
+
"vision_start_token_id": 151652,
|
| 9 |
+
"vision_end_token_id": 151653,
|
| 10 |
+
"vision_token_id": 151654,
|
| 11 |
+
"image_token_id": 151655,
|
| 12 |
+
"video_token_id": 151656,
|
| 13 |
+
"hidden_act": "silu",
|
| 14 |
+
"hidden_size": 2048,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 11008,
|
| 17 |
+
"max_position_embeddings": 128000,
|
| 18 |
+
"max_window_layers": 70,
|
| 19 |
+
"model_type": "qwen2_5_vl",
|
| 20 |
+
"num_attention_heads": 16,
|
| 21 |
+
"num_hidden_layers": 36,
|
| 22 |
+
"num_key_value_heads": 2,
|
| 23 |
+
"rms_norm_eps": 1e-06,
|
| 24 |
+
"rope_theta": 1000000.0,
|
| 25 |
+
"sliding_window": 32768,
|
| 26 |
+
"tie_word_embeddings": true,
|
| 27 |
+
"torch_dtype": "bfloat16",
|
| 28 |
+
"transformers_version": "4.41.2",
|
| 29 |
+
"use_cache": true,
|
| 30 |
+
"use_sliding_window": false,
|
| 31 |
+
"vision_config": {
|
| 32 |
+
"depth": 32,
|
| 33 |
+
"hidden_act": "silu",
|
| 34 |
+
"hidden_size": 1280,
|
| 35 |
+
"intermediate_size": 3420,
|
| 36 |
+
"num_heads": 16,
|
| 37 |
+
"in_chans": 3,
|
| 38 |
+
"out_hidden_size": 2048,
|
| 39 |
+
"patch_size": 14,
|
| 40 |
+
"spatial_merge_size": 2,
|
| 41 |
+
"spatial_patch_size": 14,
|
| 42 |
+
"window_size": 112,
|
| 43 |
+
"fullatt_block_indexes": [
|
| 44 |
+
7,
|
| 45 |
+
15,
|
| 46 |
+
23,
|
| 47 |
+
31
|
| 48 |
+
],
|
| 49 |
+
"tokens_per_second": 2,
|
| 50 |
+
"temporal_patch_size": 2
|
| 51 |
+
},
|
| 52 |
+
"rope_scaling": {
|
| 53 |
+
"type": "mrope",
|
| 54 |
+
"mrope_section": [
|
| 55 |
+
16,
|
| 56 |
+
24,
|
| 57 |
+
24
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
"vocab_size": 151936
|
| 61 |
+
}
|
Lance_3B_Video/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Lance_3B_Video/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47388d3c5b6187452d778bba50d27c031655d247a77835465ca821f61bf41901
|
| 3 |
+
size 28422373304
|
Lance_3B_Video/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Lance_3B_Video/tokenizer_config.json
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
+
"content": "<|endoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"151644": {
|
| 13 |
+
"content": "<|im_start|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"151645": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"151646": {
|
| 29 |
+
"content": "<|object_ref_start|>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"151647": {
|
| 37 |
+
"content": "<|object_ref_end|>",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"151648": {
|
| 45 |
+
"content": "<|box_start|>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"151649": {
|
| 53 |
+
"content": "<|box_end|>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
"151650": {
|
| 61 |
+
"content": "<|quad_start|>",
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"rstrip": false,
|
| 65 |
+
"single_word": false,
|
| 66 |
+
"special": true
|
| 67 |
+
},
|
| 68 |
+
"151651": {
|
| 69 |
+
"content": "<|quad_end|>",
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"rstrip": false,
|
| 73 |
+
"single_word": false,
|
| 74 |
+
"special": true
|
| 75 |
+
},
|
| 76 |
+
"151652": {
|
| 77 |
+
"content": "<|vision_start|>",
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"rstrip": false,
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"special": true
|
| 83 |
+
},
|
| 84 |
+
"151653": {
|
| 85 |
+
"content": "<|vision_end|>",
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"rstrip": false,
|
| 89 |
+
"single_word": false,
|
| 90 |
+
"special": true
|
| 91 |
+
},
|
| 92 |
+
"151654": {
|
| 93 |
+
"content": "<|vision_pad|>",
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"rstrip": false,
|
| 97 |
+
"single_word": false,
|
| 98 |
+
"special": true
|
| 99 |
+
},
|
| 100 |
+
"151655": {
|
| 101 |
+
"content": "<|image_pad|>",
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"rstrip": false,
|
| 105 |
+
"single_word": false,
|
| 106 |
+
"special": true
|
| 107 |
+
},
|
| 108 |
+
"151656": {
|
| 109 |
+
"content": "<|video_pad|>",
|
| 110 |
+
"lstrip": false,
|
| 111 |
+
"normalized": false,
|
| 112 |
+
"rstrip": false,
|
| 113 |
+
"single_word": false,
|
| 114 |
+
"special": true
|
| 115 |
+
},
|
| 116 |
+
"151657": {
|
| 117 |
+
"content": "<tool_call>",
|
| 118 |
+
"lstrip": false,
|
| 119 |
+
"normalized": false,
|
| 120 |
+
"rstrip": false,
|
| 121 |
+
"single_word": false,
|
| 122 |
+
"special": false
|
| 123 |
+
},
|
| 124 |
+
"151658": {
|
| 125 |
+
"content": "</tool_call>",
|
| 126 |
+
"lstrip": false,
|
| 127 |
+
"normalized": false,
|
| 128 |
+
"rstrip": false,
|
| 129 |
+
"single_word": false,
|
| 130 |
+
"special": false
|
| 131 |
+
},
|
| 132 |
+
"151659": {
|
| 133 |
+
"content": "<|fim_prefix|>",
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"rstrip": false,
|
| 137 |
+
"single_word": false,
|
| 138 |
+
"special": false
|
| 139 |
+
},
|
| 140 |
+
"151660": {
|
| 141 |
+
"content": "<|fim_middle|>",
|
| 142 |
+
"lstrip": false,
|
| 143 |
+
"normalized": false,
|
| 144 |
+
"rstrip": false,
|
| 145 |
+
"single_word": false,
|
| 146 |
+
"special": false
|
| 147 |
+
},
|
| 148 |
+
"151661": {
|
| 149 |
+
"content": "<|fim_suffix|>",
|
| 150 |
+
"lstrip": false,
|
| 151 |
+
"normalized": false,
|
| 152 |
+
"rstrip": false,
|
| 153 |
+
"single_word": false,
|
| 154 |
+
"special": false
|
| 155 |
+
},
|
| 156 |
+
"151662": {
|
| 157 |
+
"content": "<|fim_pad|>",
|
| 158 |
+
"lstrip": false,
|
| 159 |
+
"normalized": false,
|
| 160 |
+
"rstrip": false,
|
| 161 |
+
"single_word": false,
|
| 162 |
+
"special": false
|
| 163 |
+
},
|
| 164 |
+
"151663": {
|
| 165 |
+
"content": "<|repo_name|>",
|
| 166 |
+
"lstrip": false,
|
| 167 |
+
"normalized": false,
|
| 168 |
+
"rstrip": false,
|
| 169 |
+
"single_word": false,
|
| 170 |
+
"special": false
|
| 171 |
+
},
|
| 172 |
+
"151664": {
|
| 173 |
+
"content": "<|file_sep|>",
|
| 174 |
+
"lstrip": false,
|
| 175 |
+
"normalized": false,
|
| 176 |
+
"rstrip": false,
|
| 177 |
+
"single_word": false,
|
| 178 |
+
"special": false
|
| 179 |
+
}
|
| 180 |
+
},
|
| 181 |
+
"additional_special_tokens": [
|
| 182 |
+
"<|im_start|>",
|
| 183 |
+
"<|im_end|>",
|
| 184 |
+
"<|object_ref_start|>",
|
| 185 |
+
"<|object_ref_end|>",
|
| 186 |
+
"<|box_start|>",
|
| 187 |
+
"<|box_end|>",
|
| 188 |
+
"<|quad_start|>",
|
| 189 |
+
"<|quad_end|>",
|
| 190 |
+
"<|vision_start|>",
|
| 191 |
+
"<|vision_end|>",
|
| 192 |
+
"<|vision_pad|>",
|
| 193 |
+
"<|image_pad|>",
|
| 194 |
+
"<|video_pad|>"
|
| 195 |
+
],
|
| 196 |
+
"bos_token": null,
|
| 197 |
+
"chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
|
| 198 |
+
"clean_up_tokenization_spaces": false,
|
| 199 |
+
"eos_token": "<|im_end|>",
|
| 200 |
+
"errors": "replace",
|
| 201 |
+
"model_max_length": 131072,
|
| 202 |
+
"pad_token": "<|endoftext|>",
|
| 203 |
+
"split_special_tokens": false,
|
| 204 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 205 |
+
"unk_token": null,
|
| 206 |
+
"add_bos_token": false
|
| 207 |
+
}
|
Lance_3B_Video/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Qwen2.5-VL-ViT/config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation": "flash_attention_2",
|
| 3 |
+
"depth": 32,
|
| 4 |
+
"fullatt_block_indexes": [7, 15, 23, 31],
|
| 5 |
+
"hidden_act": "silu",
|
| 6 |
+
"hidden_size": 1280,
|
| 7 |
+
"in_channels": 3,
|
| 8 |
+
"in_chans": 3,
|
| 9 |
+
"intermediate_size": 3420,
|
| 10 |
+
"model_type": "qwen2_5_vl",
|
| 11 |
+
"num_heads": 16,
|
| 12 |
+
"out_hidden_size": 2048,
|
| 13 |
+
"patch_size": 14,
|
| 14 |
+
"spatial_merge_size": 2,
|
| 15 |
+
"spatial_patch_size": 14,
|
| 16 |
+
"temporal_patch_size": 2,
|
| 17 |
+
"tokens_per_second": 2,
|
| 18 |
+
"torch_dtype": "bfloat16",
|
| 19 |
+
"transformers_version": "4.49.0",
|
| 20 |
+
"window_size": 112
|
| 21 |
+
}
|
Qwen2.5-VL-ViT/vit.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78714e560781576a00c030e60383db3c71698083d0c5d493dc628c10dc1a9094
|
| 3 |
+
size 1337407560
|
README.md
ADDED
|
@@ -0,0 +1,603 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model:
|
| 4 |
+
- Qwen/Qwen2.5-VL-3B-Instruct
|
| 5 |
+
pipeline_tag: any-to-any
|
| 6 |
+
library_name: Lance
|
| 7 |
+
tags:
|
| 8 |
+
- multimodal
|
| 9 |
+
- image-generation
|
| 10 |
+
- video-generation
|
| 11 |
+
- image-editing
|
| 12 |
+
- video-understanding
|
| 13 |
+
- any-to-any
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<div align="center">
|
| 17 |
+
<img src="assets/logo/lance-logo.webp" alt="Lance logo" width="450">
|
| 18 |
+
|
| 19 |
+
<h1 align="center">
|
| 20 |
+
Lance: Unified Multimodal Modeling by Multi-Task Synergy
|
| 21 |
+
</h1>
|
| 22 |
+
|
| 23 |
+
<p style="line-height: 1.5; margin: 0;">
|
| 24 |
+
<span style="white-space: nowrap;">
|
| 25 |
+
<a href="https://scholar.google.com.hk/citations?user=FXxoQlsAAAAJ&hl=zh-CN&oi=ao" style="text-decoration: none; color: inherit; font-weight: 700 !important; display: inline;">Fengyi Fu</a><sup>*</sup>,
|
| 26 |
+
<a href="https://corleone-huang.github.io/" style="text-decoration: none; color: inherit; font-weight: 700 !important; display: inline;">Mengqi Huang</a><sup>*,✉</sup>,
|
| 27 |
+
<a href="https://scholar.google.com.hk/citations?user=9ER6nVkAAAAJ&hl=zh-CN&oi=ao" style="text-decoration: none; color: inherit; font-weight: 700 !important; display: inline;">Shaojin Wu</a><sup>*</sup>,
|
| 28 |
+
<span style="font-weight: 700 !important;">Yunsheng Jiang</span><sup>*</sup>,
|
| 29 |
+
<span style="font-weight: 700 !important;">Yufei Huo</span>,
|
| 30 |
+
<a href="https://guojianzhu.com/" style="text-decoration: none; color: inherit; font-weight: 700 !important; display: inline;">Jianzhu Guo</a><sup>✉,§</sup>
|
| 31 |
+
</span>
|
| 32 |
+
<br>
|
| 33 |
+
|
| 34 |
+
<span style="display: inline-block; margin-top: 0.4em;">
|
| 35 |
+
Hao Li,
|
| 36 |
+
Yinghang Song,
|
| 37 |
+
Fei Ding,
|
| 38 |
+
Qian He,
|
| 39 |
+
Zheren Fu,
|
| 40 |
+
Zhendong Mao,
|
| 41 |
+
Yongdong Zhang
|
| 42 |
+
</span>
|
| 43 |
+
<br>
|
| 44 |
+
<em>ByteDance</em>
|
| 45 |
+
<br>
|
| 46 |
+
<sup>*</sup> Equal contribution
|
| 47 |
+
<sup>✉</sup> Corresponding authors
|
| 48 |
+
<sup>§</sup> Project lead
|
| 49 |
+
</p>
|
| 50 |
+
<p>
|
| 51 |
+
<a href="https://lance-project.github.io/" style="text-decoration: none; margin: 0 8px;"><img src="https://img.shields.io/badge/Homepage-Lance-blue?style=flat" alt="Homepage"></a>
|
| 52 |
+
<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&logo=arxiv" alt="arXiv"></a>
|
| 53 |
+
<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>
|
| 54 |
+
<br>
|
| 55 |
+
English | <a href="./Lance/blob/main/README_zh.md"><ins>简体中文</ins></a>
|
| 56 |
+
</p>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
## 🌟 Highlights
|
| 60 |
+
|
| 61 |
+
Lance is a lightweight native unified multimodal model that supports **image and video understanding, generation, and editing** within a single framework.
|
| 62 |
+
|
| 63 |
+
- **Efficient at 3B scale.** With only **3B active parameters**, Lance delivers strong performance across image generation, image editing, and video generation benchmarks.
|
| 64 |
+
- **Trained from scratch.** Lance is built with a staged multi-task recipe and trained entirely from scratch within a **128-A100-GPU** budget.
|
| 65 |
+
|
| 66 |
+
<div align="center">
|
| 67 |
+
<img src="assets/benchmarks/benchmark-overview.png" alt="Lance benchmark overview across image generation, image editing, video generation, and video understanding" width="980">
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
## 🎨 Demo
|
| 71 |
+
|
| 72 |
+
### Text-to-Video
|
| 73 |
+
|
| 74 |
+
<table>
|
| 75 |
+
<tr>
|
| 76 |
+
<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>
|
| 77 |
+
<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>
|
| 78 |
+
<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>
|
| 79 |
+
<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>
|
| 80 |
+
</tr>
|
| 81 |
+
<tr>
|
| 82 |
+
<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>
|
| 83 |
+
<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>
|
| 84 |
+
<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>
|
| 85 |
+
<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>
|
| 86 |
+
</tr>
|
| 87 |
+
</table>
|
| 88 |
+
|
| 89 |
+
### Video Editing
|
| 90 |
+
|
| 91 |
+
<table>
|
| 92 |
+
<tr>
|
| 93 |
+
<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>
|
| 94 |
+
<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>
|
| 95 |
+
<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>
|
| 96 |
+
<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>
|
| 97 |
+
</tr>
|
| 98 |
+
<tr>
|
| 99 |
+
<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>
|
| 100 |
+
<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>
|
| 101 |
+
<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>
|
| 102 |
+
<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>
|
| 103 |
+
</tr>
|
| 104 |
+
</table>
|
| 105 |
+
|
| 106 |
+
### Multi-turn Consistency Editing
|
| 107 |
+
|
| 108 |
+
<div align="center">
|
| 109 |
+
<a href="assets/multi-turn-editing/videos/multi-turn-editing-demo-01.mp4">
|
| 110 |
+
<img src="assets/multi-turn-editing/previews/multi-turn-editing-demo-01.gif" width="100%">
|
| 111 |
+
</a>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
### Intelligent Video Generation
|
| 115 |
+
|
| 116 |
+
<table>
|
| 117 |
+
<tr>
|
| 118 |
+
<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>
|
| 119 |
+
<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>
|
| 120 |
+
<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>
|
| 121 |
+
<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>
|
| 122 |
+
</tr>
|
| 123 |
+
</table>
|
| 124 |
+
|
| 125 |
+
### Video Understanding
|
| 126 |
+
|
| 127 |
+
<div align="center">
|
| 128 |
+
<table>
|
| 129 |
+
<tr>
|
| 130 |
+
<td align="left" valign="top" width="33%">
|
| 131 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-01.mp4">
|
| 132 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-01.gif" width="100%">
|
| 133 |
+
</a>
|
| 134 |
+
<p><strong>Question:</strong> How many times did the person launch objects on the table? Options: (A) 3 (B) 2 (C) 4</p>
|
| 135 |
+
<p><strong>Response:</strong> (A) 3</p>
|
| 136 |
+
</td>
|
| 137 |
+
<td align="left" valign="top" width="33%">
|
| 138 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-02.mp4">
|
| 139 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-02.gif" width="100%">
|
| 140 |
+
</a>
|
| 141 |
+
<p><strong>Question:</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>
|
| 142 |
+
<p><strong>Response:</strong> (A) 2</p>
|
| 143 |
+
</td>
|
| 144 |
+
<td align="left" valign="top" width="33%">
|
| 145 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-03.mp4">
|
| 146 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-03.gif" width="100%">
|
| 147 |
+
</a>
|
| 148 |
+
<p><strong>Question:</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>
|
| 149 |
+
<p><strong>Response:</strong> (A) Down and to the right.</p>
|
| 150 |
+
</td>
|
| 151 |
+
</tr>
|
| 152 |
+
<tr>
|
| 153 |
+
<td align="left" valign="top" width="33%">
|
| 154 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-04.mp4">
|
| 155 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-04.gif" width="100%">
|
| 156 |
+
</a>
|
| 157 |
+
<p><strong>Question:</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>
|
| 158 |
+
<p><strong>Response:</strong> (B) Man grabs an object through a phone screen.</p>
|
| 159 |
+
</td>
|
| 160 |
+
<td align="left" valign="top" width="33%">
|
| 161 |
+
<a href="assets/video-understanding/videos/video-understanding-caption-short-01.mp4">
|
| 162 |
+
<img src="assets/video-understanding/previews/video-understanding-caption-short-01.gif" width="100%">
|
| 163 |
+
</a>
|
| 164 |
+
<p><strong>Question:</strong> Offer a succinct account of the culinary process shown in this video.</p>
|
| 165 |
+
<p><strong>Response:</strong> Add tomato puree and mix it well with chicken pieces.</p>
|
| 166 |
+
</td>
|
| 167 |
+
<td align="left" valign="top" width="33%">
|
| 168 |
+
<a href="assets/video-understanding/videos/video-understanding-caption-long-01.mp4">
|
| 169 |
+
<img src="assets/video-understanding/previews/video-understanding-caption-long-01.gif" width="100%">
|
| 170 |
+
</a>
|
| 171 |
+
<p><strong>Question:</strong> Provide a detailed description of the given video, capturing its key moments.</p>
|
| 172 |
+
<p><strong>Response:</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>
|
| 173 |
+
</td>
|
| 174 |
+
</tr>
|
| 175 |
+
</table>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
### Text-to-Image Generation
|
| 179 |
+
|
| 180 |
+
<div align="center">
|
| 181 |
+
<img src="assets/text-to-image/text-to-image-overview.webp" alt="Lance text-to-image generation examples" width="100%">
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
### Image Editing
|
| 185 |
+
|
| 186 |
+
<div align="center">
|
| 187 |
+
<img src="assets/image-editing/image-editing-overview.webp" alt="Lance image editing examples" width="100%">
|
| 188 |
+
</div>
|
| 189 |
+
|
| 190 |
+
### Image Understanding
|
| 191 |
+
|
| 192 |
+
<div align="center">
|
| 193 |
+
<table>
|
| 194 |
+
<tr>
|
| 195 |
+
<td align="left" valign="top" width="33%">
|
| 196 |
+
<img src="assets/image-understanding/cases/image-understanding-case-01.png" alt="Pie chart reasoning case" width="100%">
|
| 197 |
+
<p><strong>Question:</strong> Is the largest segment greater than sum of all the other segments?</p>
|
| 198 |
+
<p><strong>Response:</strong> Yes, the largest segment in the pie chart is the blue one, which is the most populous segment.</p>
|
| 199 |
+
</td>
|
| 200 |
+
<td align="left" valign="top" width="33%">
|
| 201 |
+
<img src="assets/image-understanding/cases/image-understanding-case-02.png" alt="Survey chart about border security priorities" width="100%">
|
| 202 |
+
<p><strong>Question:</strong> What percentage of respondents want better border security?</p>
|
| 203 |
+
<p><strong>Response:</strong> 29%</p>
|
| 204 |
+
</td>
|
| 205 |
+
<td align="left" valign="top" width="33%">
|
| 206 |
+
<img src="assets/image-understanding/cases/image-understanding-case-03.png" alt="License plate recognition case" width="100%">
|
| 207 |
+
<p><strong>Question:</strong> What is the license plate number of the car?</p>
|
| 208 |
+
<p><strong>Response:</strong> The license plate number of the car is BX62 BFY.</p>
|
| 209 |
+
</td>
|
| 210 |
+
</tr>
|
| 211 |
+
<tr>
|
| 212 |
+
<td align="left" valign="top" width="33%">
|
| 213 |
+
<img src="assets/image-understanding/cases/image-understanding-case-04.png" alt="Market research chart reasoning case" width="100%">
|
| 214 |
+
<p><strong>Question:</strong> According to the data from the proprietary market research, how much amount was spent on the promotional meetings and events during 1998?</p>
|
| 215 |
+
<p><strong>Response:</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>
|
| 216 |
+
</td>
|
| 217 |
+
<td align="left" valign="top" width="33%">
|
| 218 |
+
<img src="assets/image-understanding/cases/image-understanding-case-05.png" alt="Colosseum description case" width="100%">
|
| 219 |
+
<p><strong>Question:</strong> What is the appearance of the Colosseum in Rome, Italy?</p>
|
| 220 |
+
<p><strong>Response:</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>
|
| 221 |
+
</td>
|
| 222 |
+
<td align="left" valign="top" width="33%">
|
| 223 |
+
<img src="assets/image-understanding/cases/image-understanding-case-06.png" alt="Total solar eclipse case" width="100%">
|
| 224 |
+
<p><strong>Question:</strong> How does a total solar eclipse look like from Earth?</p>
|
| 225 |
+
<p><strong>Response:</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>
|
| 226 |
+
</td>
|
| 227 |
+
</tr>
|
| 228 |
+
</table>
|
| 229 |
+
</div>
|
| 230 |
+
|
| 231 |
+
## 🚀 Installation
|
| 232 |
+
|
| 233 |
+
### Recommended Environment
|
| 234 |
+
|
| 235 |
+
- **Software:** Python 3.10+, CUDA 12.4+ (required)
|
| 236 |
+
- **Hardware:** A GPU with at least 40GB VRAM is required for inference
|
| 237 |
+
|
| 238 |
+
### Installation Steps
|
| 239 |
+
```bash
|
| 240 |
+
bash ./setup_env.sh
|
| 241 |
+
```
|
| 242 |
+
|
| 243 |
+
### Download Model Weights
|
| 244 |
+
|
| 245 |
+
Please download all the necessary model checkpoints of [Lance-3B (Huggingface Link)](https://huggingface.co/bytedance-research/Lance) and place them in the `downloads/` directory.
|
| 246 |
+
|
| 247 |
+
## 📚 Usage
|
| 248 |
+
|
| 249 |
+
### Inference
|
| 250 |
+
|
| 251 |
+
Lance provides a unified command-line interface for all generation / editing / understanding tasks:
|
| 252 |
+
|
| 253 |
+
```bash
|
| 254 |
+
bash inference_lance.sh
|
| 255 |
+
```
|
| 256 |
+
|
| 257 |
+
- Before running, please configure the inference parameters at the top of `inference_lance.sh`.
|
| 258 |
+
- **Supported tasks:** `t2i`, `t2v`, `image_edit`, `video_edit`, `x2t_image`, and `x2t_video`. You can modify `TASK_DEFAULT_CONFIGS` in `inference_lance.py` to customize the default data samples for each task.
|
| 259 |
+
|
| 260 |
+
#### Available Tasks
|
| 261 |
+
|
| 262 |
+
| Task Name | Description | Example JSON |
|
| 263 |
+
|------------------------|--------------------------------------------------|----------------------------------------------|
|
| 264 |
+
| `t2v` | Text-to-Video generation | `config/examples/t2v_example.json` |
|
| 265 |
+
| `t2i` | Text-to-Image generation | `config/examples/t2i_example.json` |
|
| 266 |
+
| `image_edit` | Image editing | `config/examples/image_edit_example.json` |
|
| 267 |
+
| `video_edit` | Video editing | `config/examples/video_edit_example.json` |
|
| 268 |
+
| `x2t_image` | Image understanding | `config/examples/x2t_image_example.json` |
|
| 269 |
+
| `x2t_video` | Video understanding | `config/examples/x2t_video_example.json` |
|
| 270 |
+
|
| 271 |
+
For understanding examples:
|
| 272 |
+
|
| 273 |
+
- `config/examples/x2t_image_example.json`: image understanding examples for visual question answering and image-based reasoning.
|
| 274 |
+
- `config/examples/x2t_video_example.json`: video understanding examples for video question answering and video captioning.
|
| 275 |
+
|
| 276 |
+
#### Parameters
|
| 277 |
+
|
| 278 |
+
You can configure the following hyperparameters at the top of the `inference_lance.sh` script:
|
| 279 |
+
|
| 280 |
+
| Parameter | Default Value | Description |
|
| 281 |
+
| --- | --- | --- |
|
| 282 |
+
| `MODEL_PATH` | `"downloads/lance_3b"` | Path to the downloaded Lance model weights. |
|
| 283 |
+
| `NUM_GPUS` | `1` | Number of GPUs to use for inference. |
|
| 284 |
+
| `VALIDATION_NUM_TIMESTEPS` | `30` | Number of denoising steps (e.g., 30 or 50). |
|
| 285 |
+
| `VALIDATION_TIMESTEP_SHIFT` | `3.5` | Timestep shift parameter for flow matching scheduling. |
|
| 286 |
+
| `CFG_TEXT_SCALE` | `4.0` | Classifier-Free Guidance (CFG) scale for text conditioning. |
|
| 287 |
+
| `VALIDATION_DATA_SEED` | `42` | Random seed for generation reproducibility. |
|
| 288 |
+
| `NUM_FRAMES` | `50` | Number of frames for video generation (Max: 121). *Unused for image tasks.* |
|
| 289 |
+
| `VIDEO_HEIGHT` / `VIDEO_WIDTH`| `768` | Spatial resolution. *Unused for editing tasks (determined by input image/video).* |
|
| 290 |
+
| `RESOLUTION` | `"video_480p"` | Base resolution preset (`image_768res` or `video_480p`). |
|
| 291 |
+
|
| 292 |
+
### Gradio
|
| 293 |
+
```python
|
| 294 |
+
python lance_gradio_t2v_v2t.py --gpus 0 --server-port 7860
|
| 295 |
+
```
|
| 296 |
+
|
| 297 |
+
### Benchmarks
|
| 298 |
+
|
| 299 |
+
#### DPG-Bench Evaluation
|
| 300 |
+
|
| 301 |
+
<div align="center">
|
| 302 |
+
<table align="center">
|
| 303 |
+
<thead>
|
| 304 |
+
<tr>
|
| 305 |
+
<th align="left">Models</th>
|
| 306 |
+
<th align="center"># Params.</th>
|
| 307 |
+
<th align="center">Global</th>
|
| 308 |
+
<th align="center">Entity</th>
|
| 309 |
+
<th align="center">Attribute</th>
|
| 310 |
+
<th align="center">Relation</th>
|
| 311 |
+
<th align="center">Other</th>
|
| 312 |
+
<th align="center">Overall</th>
|
| 313 |
+
</tr>
|
| 314 |
+
</thead>
|
| 315 |
+
<tbody>
|
| 316 |
+
<tr>
|
| 317 |
+
<td align="center" colspan="8"><i>Generation-only Models</i></td>
|
| 318 |
+
</tr>
|
| 319 |
+
<tr>
|
| 320 |
+
<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>
|
| 321 |
+
</tr>
|
| 322 |
+
<tr>
|
| 323 |
+
<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>
|
| 324 |
+
</tr>
|
| 325 |
+
<tr>
|
| 326 |
+
<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>
|
| 327 |
+
</tr>
|
| 328 |
+
<tr>
|
| 329 |
+
<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>
|
| 330 |
+
</tr>
|
| 331 |
+
<tr>
|
| 332 |
+
<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>
|
| 333 |
+
</tr>
|
| 334 |
+
<tr>
|
| 335 |
+
<td align="center" colspan="8"><i>Unified Models</i></td>
|
| 336 |
+
</tr>
|
| 337 |
+
<tr>
|
| 338 |
+
<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>
|
| 339 |
+
</tr>
|
| 340 |
+
<tr>
|
| 341 |
+
<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>
|
| 342 |
+
</tr>
|
| 343 |
+
<tr>
|
| 344 |
+
<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>
|
| 345 |
+
</tr>
|
| 346 |
+
<tr>
|
| 347 |
+
<td align="left">BAGEL<sup>†</sup></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>
|
| 348 |
+
</tr>
|
| 349 |
+
<tr>
|
| 350 |
+
<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>
|
| 351 |
+
</tr>
|
| 352 |
+
<tr>
|
| 353 |
+
<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>
|
| 354 |
+
</tr>
|
| 355 |
+
<tr>
|
| 356 |
+
<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>
|
| 357 |
+
</tr>
|
| 358 |
+
<tr bgcolor="#f4e6ff">
|
| 359 |
+
<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>
|
| 360 |
+
</tr>
|
| 361 |
+
</tbody>
|
| 362 |
+
</table>
|
| 363 |
+
</div>
|
| 364 |
+
|
| 365 |
+
<p align="center"><em><sup>†</sup> indicates methods that use LLM rewriters for prompt rewriting before generation.</em></p>
|
| 366 |
+
|
| 367 |
+
#### GenEval Evaluation
|
| 368 |
+
|
| 369 |
+
<div align="center">
|
| 370 |
+
<table align="center">
|
| 371 |
+
<thead>
|
| 372 |
+
<tr>
|
| 373 |
+
<th align="left">Models</th>
|
| 374 |
+
<th align="center"># Params.</th>
|
| 375 |
+
<th align="center">1-Obj.</th>
|
| 376 |
+
<th align="center">2-Obj.</th>
|
| 377 |
+
<th align="center">Count</th>
|
| 378 |
+
<th align="center">Colors</th>
|
| 379 |
+
<th align="center">Position</th>
|
| 380 |
+
<th align="center">Attr.</th>
|
| 381 |
+
<th align="center">Overall</th>
|
| 382 |
+
</tr>
|
| 383 |
+
</thead>
|
| 384 |
+
<tbody>
|
| 385 |
+
<tr>
|
| 386 |
+
<td align="center" colspan="9"><i>Generation-only Models</i></td>
|
| 387 |
+
</tr>
|
| 388 |
+
<tr>
|
| 389 |
+
<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>
|
| 390 |
+
</tr>
|
| 391 |
+
<tr>
|
| 392 |
+
<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>
|
| 393 |
+
</tr>
|
| 394 |
+
<tr>
|
| 395 |
+
<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>
|
| 396 |
+
</tr>
|
| 397 |
+
<tr>
|
| 398 |
+
<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>
|
| 399 |
+
</tr>
|
| 400 |
+
<tr>
|
| 401 |
+
<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>
|
| 402 |
+
</tr>
|
| 403 |
+
<tr>
|
| 404 |
+
<td align="center" colspan="9"><i>Unified Models</i></td>
|
| 405 |
+
</tr>
|
| 406 |
+
<tr>
|
| 407 |
+
<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>
|
| 408 |
+
</tr>
|
| 409 |
+
<tr>
|
| 410 |
+
<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>
|
| 411 |
+
</tr>
|
| 412 |
+
<tr>
|
| 413 |
+
<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>
|
| 414 |
+
</tr>
|
| 415 |
+
<tr>
|
| 416 |
+
<td align="left">BAGEL<sup>†</sup></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>
|
| 417 |
+
</tr>
|
| 418 |
+
<tr>
|
| 419 |
+
<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>
|
| 420 |
+
</tr>
|
| 421 |
+
<tr>
|
| 422 |
+
<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>
|
| 423 |
+
</tr>
|
| 424 |
+
<tr>
|
| 425 |
+
<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>
|
| 426 |
+
</tr>
|
| 427 |
+
<tr>
|
| 428 |
+
<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>
|
| 429 |
+
</tr>
|
| 430 |
+
<tr bgcolor="#f4e6ff">
|
| 431 |
+
<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>
|
| 432 |
+
</tr>
|
| 433 |
+
</tbody>
|
| 434 |
+
</table>
|
| 435 |
+
</div>
|
| 436 |
+
|
| 437 |
+
<p align="center"><em><sup>†</sup> indicates methods that use LLM rewriters for prompt rewriting before generation.</em></p>
|
| 438 |
+
|
| 439 |
+
#### GEdit-Bench Evaluation
|
| 440 |
+
|
| 441 |
+
<div align="center">
|
| 442 |
+
<table align="center">
|
| 443 |
+
<thead>
|
| 444 |
+
<tr>
|
| 445 |
+
<th align="left">Models</th>
|
| 446 |
+
<th align="center"># Params.</th>
|
| 447 |
+
<th align="center">BC</th>
|
| 448 |
+
<th align="center">CA</th>
|
| 449 |
+
<th align="center">MM</th>
|
| 450 |
+
<th align="center">MC</th>
|
| 451 |
+
<th align="center">PB</th>
|
| 452 |
+
<th align="center">ST</th>
|
| 453 |
+
<th align="center">SA</th>
|
| 454 |
+
<th align="center">SR</th>
|
| 455 |
+
<th align="center">SRp</th>
|
| 456 |
+
<th align="center">TM</th>
|
| 457 |
+
<th align="center">TT</th>
|
| 458 |
+
<th align="center">Avg/G_O</th>
|
| 459 |
+
</tr>
|
| 460 |
+
</thead>
|
| 461 |
+
<tbody>
|
| 462 |
+
<tr>
|
| 463 |
+
<td align="center" colspan="14"><i>Generation-only Models</i></td>
|
| 464 |
+
</tr>
|
| 465 |
+
<tr>
|
| 466 |
+
<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>
|
| 467 |
+
</tr>
|
| 468 |
+
<tr>
|
| 469 |
+
<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>
|
| 470 |
+
</tr>
|
| 471 |
+
<tr>
|
| 472 |
+
<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>
|
| 473 |
+
</tr>
|
| 474 |
+
<tr>
|
| 475 |
+
<td align="center" colspan="14"><i>Unified Models</i></td>
|
| 476 |
+
</tr>
|
| 477 |
+
<tr>
|
| 478 |
+
<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>
|
| 479 |
+
</tr>
|
| 480 |
+
<tr>
|
| 481 |
+
<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>
|
| 482 |
+
</tr>
|
| 483 |
+
<tr>
|
| 484 |
+
<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>
|
| 485 |
+
</tr>
|
| 486 |
+
<tr>
|
| 487 |
+
<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>
|
| 488 |
+
</tr>
|
| 489 |
+
<tr>
|
| 490 |
+
<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>
|
| 491 |
+
</tr>
|
| 492 |
+
<tr bgcolor="#f4e6ff">
|
| 493 |
+
<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>
|
| 494 |
+
</tr>
|
| 495 |
+
</tbody>
|
| 496 |
+
</table>
|
| 497 |
+
</div>
|
| 498 |
+
|
| 499 |
+
#### VBench Evaluation (Video Generation)
|
| 500 |
+
|
| 501 |
+
<div align="center">
|
| 502 |
+
<table align="center">
|
| 503 |
+
<thead>
|
| 504 |
+
<tr>
|
| 505 |
+
<th align="left">Type</th>
|
| 506 |
+
<th align="left">Model</th>
|
| 507 |
+
<th align="center"># Params.</th>
|
| 508 |
+
<th align="center">Total Score ↑</th>
|
| 509 |
+
</tr>
|
| 510 |
+
</thead>
|
| 511 |
+
<tbody>
|
| 512 |
+
<tr>
|
| 513 |
+
<td align="center" rowspan="12"><i>Gen. Only</i></td>
|
| 514 |
+
<td align="left">ModelScope</td><td align="center">1.7B</td><td align="center">75.75</td>
|
| 515 |
+
</tr>
|
| 516 |
+
<tr>
|
| 517 |
+
<td align="left">LaVie</td><td align="center">3B</td><td align="center">77.08</td>
|
| 518 |
+
</tr>
|
| 519 |
+
<tr>
|
| 520 |
+
<td align="left">Show-1</td><td align="center">6B</td><td align="center">78.93</td>
|
| 521 |
+
</tr>
|
| 522 |
+
<tr>
|
| 523 |
+
<td align="left">AnimateDiff-V2</td><td align="center">-</td><td align="center">80.27</td>
|
| 524 |
+
</tr>
|
| 525 |
+
<tr>
|
| 526 |
+
<td align="left">VideoCrafter-2.0</td><td align="center">-</td><td align="center">80.44</td>
|
| 527 |
+
</tr>
|
| 528 |
+
<tr>
|
| 529 |
+
<td align="left">CogVideoX</td><td align="center">5B</td><td align="center">81.61</td>
|
| 530 |
+
</tr>
|
| 531 |
+
<tr>
|
| 532 |
+
<td align="left">Kling</td><td align="center">-</td><td align="center">81.85</td>
|
| 533 |
+
</tr>
|
| 534 |
+
<tr>
|
| 535 |
+
<td align="left">Open-Sora-2.0</td><td align="center">-</td><td align="center">81.71</td>
|
| 536 |
+
</tr>
|
| 537 |
+
<tr>
|
| 538 |
+
<td align="left">Gen-3</td><td align="center">-</td><td align="center">82.32</td>
|
| 539 |
+
</tr>
|
| 540 |
+
<tr>
|
| 541 |
+
<td align="left">Step-Video-T2V</td><td align="center">30B</td><td align="center">81.83</td>
|
| 542 |
+
</tr>
|
| 543 |
+
<tr>
|
| 544 |
+
<td align="left">Hunyuan Video</td><td align="center">-</td><td align="center">83.43</td>
|
| 545 |
+
</tr>
|
| 546 |
+
<tr>
|
| 547 |
+
<td align="left">Wan2.1-T2V</td><td align="center">14B</td><td align="center">83.69</td>
|
| 548 |
+
</tr>
|
| 549 |
+
<tr>
|
| 550 |
+
<td align="center" rowspan="6"><i>Unified</i></td>
|
| 551 |
+
<td align="left">HaproOmni</td><td align="center">7B</td><td align="center">78.10</td>
|
| 552 |
+
</tr>
|
| 553 |
+
<tr>
|
| 554 |
+
<td align="left">Emu3</td><td align="center">8B</td><td align="center">80.96</td>
|
| 555 |
+
</tr>
|
| 556 |
+
<tr>
|
| 557 |
+
<td align="left">VILA-U</td><td align="center">7B</td><td align="center">74.01</td>
|
| 558 |
+
</tr>
|
| 559 |
+
<tr>
|
| 560 |
+
<td align="left">Show-o2</td><td align="center">2B</td><td align="center">81.34</td>
|
| 561 |
+
</tr>
|
| 562 |
+
<tr>
|
| 563 |
+
<td align="left">TUNA</td><td align="center">1.5B</td><td align="center"><u>84.06</u></td>
|
| 564 |
+
</tr>
|
| 565 |
+
<tr bgcolor="#f4e6ff">
|
| 566 |
+
<td align="left">🌟 <b>Lance (Ours)</b></td><td align="center"><b>3B</b></td><td align="center"><b>85.11</b></td>
|
| 567 |
+
</tr>
|
| 568 |
+
</tbody>
|
| 569 |
+
</table>
|
| 570 |
+
</div>
|
| 571 |
+
|
| 572 |
+
#### Running Benchmarks
|
| 573 |
+
|
| 574 |
+
Ready-to-run benchmark scripts are provided under `benchmarks/`:
|
| 575 |
+
|
| 576 |
+
| Benchmark | Modality | Script |
|
| 577 |
+
|------------------------|----------|---------------------------------------------------------------|
|
| 578 |
+
| GenEVAL (image gen) | Image | `benchmarks/image_gen/GenEVAL/sample_GenEVAL.sh` |
|
| 579 |
+
| DPG (image gen) | Image | `benchmarks/image_gen/DPG/sample_DPG.sh` |
|
| 580 |
+
| GEdit (image edit) | Image | `benchmarks/image_gen/GEdit/sample_GEdit.sh` |
|
| 581 |
+
| VBench (video gen) | Video | `benchmarks/video_gen/Vbench/sample_vbench.sh` |
|
| 582 |
+
|
| 583 |
+
|
| 584 |
+
## 📄 License
|
| 585 |
+
|
| 586 |
+
Copyright 2025 Bytedance Ltd. and/or its affiliates.
|
| 587 |
+
|
| 588 |
+
## 💖 Citation
|
| 589 |
+
|
| 590 |
+
If you find **Lance** useful for your project or research, welcome to 🌟 this repo and cite our work using the following BibTeX:
|
| 591 |
+
|
| 592 |
+
```bibtex
|
| 593 |
+
@misc{lance2026,
|
| 594 |
+
title = {Lance: Unified Multimodal Modeling by Multi-Task Synergy},
|
| 595 |
+
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},
|
| 596 |
+
year = {2026},
|
| 597 |
+
note = {Manuscript}
|
| 598 |
+
}
|
| 599 |
+
```
|
| 600 |
+
|
| 601 |
+
## 📞 Contact
|
| 602 |
+
|
| 603 |
+
For questions, issues, or collaborations, please contact [Mengqi Huang](https://corleone-huang.github.io/) and [Jianzhu Guo](https://guojianzhu.com/).
|
README_zh.md
ADDED
|
@@ -0,0 +1,575 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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<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>,
|
| 8 |
+
<a href="https://corleone-huang.github.io/" style="text-decoration: none; color: inherit;">Mengqi Huang</a><sup>*,✉</sup>,
|
| 9 |
+
<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>,
|
| 10 |
+
Yunsheng Jiang<sup>*</sup>,
|
| 11 |
+
Yufei Huo,
|
| 12 |
+
<a href="https://guojianzhu.com/" style="text-decoration: none; color: inherit;">Jianzhu Guo</a><sup>✉,§</sup>
|
| 13 |
+
</strong><br>
|
| 14 |
+
Hao Li,
|
| 15 |
+
Yinghang Song,
|
| 16 |
+
Fei Ding,
|
| 17 |
+
Qian He,
|
| 18 |
+
Zheren Fu,
|
| 19 |
+
Zhendong Mao,
|
| 20 |
+
Yongdong Zhang
|
| 21 |
+
<br>
|
| 22 |
+
<em>ByteDance</em>
|
| 23 |
+
<br>
|
| 24 |
+
<sup>*</sup> 共同一作 <sup>✉</sup> 通讯作者 <sup>§</sup> Project lead
|
| 25 |
+
</p>
|
| 26 |
+
<p>
|
| 27 |
+
<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>
|
| 28 |
+
<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>
|
| 29 |
+
<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>
|
| 30 |
+
<br>
|
| 31 |
+
<a href="./README.md"><ins>English</ins></a> | 简体中文
|
| 32 |
+
</p>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
## 🌟 亮点
|
| 36 |
+
|
| 37 |
+
Lance 是一个轻量级、原生统一的多模态模型,在单一框架下同时支持 **图像与视频的理解、生成和编辑**。
|
| 38 |
+
|
| 39 |
+
- **3B 规模高效强大。** 仅使用 **3B active parameters**,Lance 即可在图像生成、图像编辑和视频生成等基准上取得强劲表现。
|
| 40 |
+
- **从零训练。** Lance 采用分阶段多任务训练配方,在 **128 张 A100 GPU** 的预算内从零完成训练。
|
| 41 |
+
|
| 42 |
+
<div align="center">
|
| 43 |
+
<img src="assets/benchmarks/benchmark-overview.png" alt="Lance benchmark overview across image generation, image editing, video generation, and video understanding" width="980">
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
## 🎨 演示
|
| 47 |
+
|
| 48 |
+
### 文生视频
|
| 49 |
+
|
| 50 |
+
<table>
|
| 51 |
+
<tr>
|
| 52 |
+
<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>
|
| 53 |
+
<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>
|
| 54 |
+
<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>
|
| 55 |
+
<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>
|
| 56 |
+
</tr>
|
| 57 |
+
<tr>
|
| 58 |
+
<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>
|
| 59 |
+
<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>
|
| 60 |
+
<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>
|
| 61 |
+
<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>
|
| 62 |
+
</tr>
|
| 63 |
+
</table>
|
| 64 |
+
|
| 65 |
+
### 视频编辑
|
| 66 |
+
|
| 67 |
+
<table>
|
| 68 |
+
<tr>
|
| 69 |
+
<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>
|
| 70 |
+
<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>
|
| 71 |
+
<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>
|
| 72 |
+
<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>
|
| 73 |
+
</tr>
|
| 74 |
+
<tr>
|
| 75 |
+
<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>
|
| 76 |
+
<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>
|
| 77 |
+
<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>
|
| 78 |
+
<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>
|
| 79 |
+
</tr>
|
| 80 |
+
</table>
|
| 81 |
+
|
| 82 |
+
### 多轮一致性编辑
|
| 83 |
+
|
| 84 |
+
<div align="center">
|
| 85 |
+
<a href="assets/multi-turn-editing/videos/multi-turn-editing-demo-01.mp4">
|
| 86 |
+
<img src="assets/multi-turn-editing/previews/multi-turn-editing-demo-01.gif" width="100%">
|
| 87 |
+
</a>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
### 智能视频生成
|
| 91 |
+
|
| 92 |
+
<table>
|
| 93 |
+
<tr>
|
| 94 |
+
<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>
|
| 95 |
+
<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>
|
| 96 |
+
<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>
|
| 97 |
+
<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>
|
| 98 |
+
</tr>
|
| 99 |
+
</table>
|
| 100 |
+
|
| 101 |
+
### 视频理解
|
| 102 |
+
|
| 103 |
+
<div align="center">
|
| 104 |
+
<table>
|
| 105 |
+
<tr>
|
| 106 |
+
<td align="left" valign="top" width="33%">
|
| 107 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-01.mp4">
|
| 108 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-01.gif" width="100%">
|
| 109 |
+
</a>
|
| 110 |
+
<p><strong>问题:</strong> How many times did the person launch objects on the table? Options: (A) 3 (B) 2 (C) 4</p>
|
| 111 |
+
<p><strong>回答:</strong> (A) 3</p>
|
| 112 |
+
</td>
|
| 113 |
+
<td align="left" valign="top" width="33%">
|
| 114 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-02.mp4">
|
| 115 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-02.gif" width="100%">
|
| 116 |
+
</a>
|
| 117 |
+
<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>
|
| 118 |
+
<p><strong>回答:</strong> (A) 2</p>
|
| 119 |
+
</td>
|
| 120 |
+
<td align="left" valign="top" width="33%">
|
| 121 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-03.mp4">
|
| 122 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-03.gif" width="100%">
|
| 123 |
+
</a>
|
| 124 |
+
<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>
|
| 125 |
+
<p><strong>回答:</strong> (A) Down and to the right.</p>
|
| 126 |
+
</td>
|
| 127 |
+
</tr>
|
| 128 |
+
<tr>
|
| 129 |
+
<td align="left" valign="top" width="33%">
|
| 130 |
+
<a href="assets/video-understanding/videos/video-understanding-vqa-04.mp4">
|
| 131 |
+
<img src="assets/video-understanding/previews/video-understanding-vqa-04.gif" width="100%">
|
| 132 |
+
</a>
|
| 133 |
+
<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>
|
| 134 |
+
<p><strong>回答:</strong> (B) Man grabs an object through a phone screen.</p>
|
| 135 |
+
</td>
|
| 136 |
+
<td align="left" valign="top" width="33%">
|
| 137 |
+
<a href="assets/video-understanding/videos/video-understanding-caption-short-01.mp4">
|
| 138 |
+
<img src="assets/video-understanding/previews/video-understanding-caption-short-01.gif" width="100%">
|
| 139 |
+
</a>
|
| 140 |
+
<p><strong>问题:</strong> Offer a succinct account of the culinary process shown in this video.</p>
|
| 141 |
+
<p><strong>回答:</strong> Add tomato puree and mix it well with chicken pieces.</p>
|
| 142 |
+
</td>
|
| 143 |
+
<td align="left" valign="top" width="33%">
|
| 144 |
+
<a href="assets/video-understanding/videos/video-understanding-caption-long-01.mp4">
|
| 145 |
+
<img src="assets/video-understanding/previews/video-understanding-caption-long-01.gif" width="100%">
|
| 146 |
+
</a>
|
| 147 |
+
<p><strong>问题:</strong> Provide a detailed description of the given video, capturing its key moments.</p>
|
| 148 |
+
<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>
|
| 149 |
+
</td>
|
| 150 |
+
</tr>
|
| 151 |
+
</table>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
### 文生图
|
| 155 |
+
|
| 156 |
+
<div align="center">
|
| 157 |
+
<img src="assets/text-to-image/text-to-image-overview.webp" alt="Lance text-to-image generation examples" width="100%">
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
### 图像编辑
|
| 161 |
+
|
| 162 |
+
<div align="center">
|
| 163 |
+
<img src="assets/image-editing/image-editing-overview.webp" alt="Lance image editing examples" width="100%">
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
### 图像理解
|
| 167 |
+
|
| 168 |
+
<div align="center">
|
| 169 |
+
<table>
|
| 170 |
+
<tr>
|
| 171 |
+
<td align="left" valign="top" width="33%">
|
| 172 |
+
<img src="assets/image-understanding/cases/image-understanding-case-01.png" alt="Pie chart reasoning case" width="100%">
|
| 173 |
+
<p><strong>问题:</strong> Is the largest segment greater than sum of all the other segments?</p>
|
| 174 |
+
<p><strong>回答:</strong> Yes, the largest segment in the pie chart is the blue one, which is the most populous segment.</p>
|
| 175 |
+
</td>
|
| 176 |
+
<td align="left" valign="top" width="33%">
|
| 177 |
+
<img src="assets/image-understanding/cases/image-understanding-case-02.png" alt="Survey chart about border security priorities" width="100%">
|
| 178 |
+
<p><strong>问题:</strong> What percentage of respondents want better border security?</p>
|
| 179 |
+
<p><strong>回答:</strong> 29%</p>
|
| 180 |
+
</td>
|
| 181 |
+
<td align="left" valign="top" width="33%">
|
| 182 |
+
<img src="assets/image-understanding/cases/image-understanding-case-03.png" alt="License plate recognition case" width="100%">
|
| 183 |
+
<p><strong>问题:</strong> What is the license plate number of the car?</p>
|
| 184 |
+
<p><strong>回答:</strong> The license plate number of the car is BX62 BFY.</p>
|
| 185 |
+
</td>
|
| 186 |
+
</tr>
|
| 187 |
+
<tr>
|
| 188 |
+
<td align="left" valign="top" width="33%">
|
| 189 |
+
<img src="assets/image-understanding/cases/image-understanding-case-04.png" alt="Market research chart reasoning case" width="100%">
|
| 190 |
+
<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>
|
| 191 |
+
<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>
|
| 192 |
+
</td>
|
| 193 |
+
<td align="left" valign="top" width="33%">
|
| 194 |
+
<img src="assets/image-understanding/cases/image-understanding-case-05.png" alt="Colosseum description case" width="100%">
|
| 195 |
+
<p><strong>问题:</strong> What is the appearance of the Colosseum in Rome, Italy?</p>
|
| 196 |
+
<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>
|
| 197 |
+
</td>
|
| 198 |
+
<td align="left" valign="top" width="33%">
|
| 199 |
+
<img src="assets/image-understanding/cases/image-understanding-case-06.png" alt="Total solar eclipse case" width="100%">
|
| 200 |
+
<p><strong>问题:</strong> How does a total solar eclipse look like from Earth?</p>
|
| 201 |
+
<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>
|
| 202 |
+
</td>
|
| 203 |
+
</tr>
|
| 204 |
+
</table>
|
| 205 |
+
</div>
|
| 206 |
+
|
| 207 |
+
## 🚀 安装
|
| 208 |
+
|
| 209 |
+
### 推荐环境
|
| 210 |
+
|
| 211 |
+
- **软件环境:** Python 3.10+,CUDA 12.4+(必需)
|
| 212 |
+
- **硬件环境:** 推理至少需要一张显存不低于 40GB 的 GPU
|
| 213 |
+
|
| 214 |
+
### 安装步骤
|
| 215 |
+
```bash
|
| 216 |
+
bash ./setup_env.sh
|
| 217 |
+
```
|
| 218 |
+
|
| 219 |
+
### 下载模型权重
|
| 220 |
+
|
| 221 |
+
请从 [Lance-3B(HuggingFace 链接)](https://huggingface.co/bytedance-research/Lance) 下载所需的全部模型权重,并放置到 `downloads/` 目录下。
|
| 222 |
+
|
| 223 |
+
## 📚 使用方法
|
| 224 |
+
|
| 225 |
+
### 推理
|
| 226 |
+
|
| 227 |
+
Lance 为生成、编辑和理解任务提供了统一的命令行入口:
|
| 228 |
+
|
| 229 |
+
```bash
|
| 230 |
+
bash inference_lance.sh
|
| 231 |
+
```
|
| 232 |
+
|
| 233 |
+
- 运行前,请先在 `inference_lance.sh` 顶部配置推理参数。
|
| 234 |
+
- **支持任务:** `t2i`、`t2v`、`image_edit`、`video_edit`、`x2t_image` 和 `x2t_video`。你也可以在 `inference_lance.py` 中修改 `TASK_DEFAULT_CONFIGS`,自定义每个任务默认使用的数据样例。
|
| 235 |
+
|
| 236 |
+
#### 可用任务
|
| 237 |
+
|
| 238 |
+
| 任务名 | 说明 | 示例 JSON |
|
| 239 |
+
|------------------------|--------------------------------------------------|----------------------------------------------|
|
| 240 |
+
| `t2v` | 文生视频 | `config/examples/t2v_example.json` |
|
| 241 |
+
| `t2i` | 文生图 | `config/examples/t2i_example.json` |
|
| 242 |
+
| `image_edit` | 图像编辑 | `config/examples/image_edit_example.json` |
|
| 243 |
+
| `video_edit` | 视频编辑 | `config/examples/video_edit_example.json` |
|
| 244 |
+
| `x2t_image` | 图像理解 | `config/examples/x2t_image_example.json` |
|
| 245 |
+
| `x2t_video` | 视频理解 | `config/examples/x2t_video_example.json` |
|
| 246 |
+
|
| 247 |
+
关于理解任务的示例文件:
|
| 248 |
+
|
| 249 |
+
- `config/examples/x2t_image_example.json`:用于图像理解示例,包括视觉问答和基于图像的推理。
|
| 250 |
+
- `config/examples/x2t_video_example.json`:用于视频理解示例,包括视频问答和视频描述。
|
| 251 |
+
|
| 252 |
+
#### 参数说明
|
| 253 |
+
|
| 254 |
+
你可以在 `inference_lance.sh` 顶部配置以下超参数:
|
| 255 |
+
|
| 256 |
+
| 参数 | 默认值 | 说明 |
|
| 257 |
+
| --- | --- | --- |
|
| 258 |
+
| `MODEL_PATH` | `"downloads/lance_3b"` | 下载后的 Lance 模型权重路径。 |
|
| 259 |
+
| `NUM_GPUS` | `1` | 用于推理的 GPU 数量。 |
|
| 260 |
+
| `VALIDATION_NUM_TIMESTEPS` | `30` | 去噪步数(例如 30 或 50)。 |
|
| 261 |
+
| `VALIDATION_TIMESTEP_SHIFT` | `3.5` | Flow matching 调度中的 timestep shift 参数。 |
|
| 262 |
+
| `CFG_TEXT_SCALE` | `4.0` | 文本条件的 CFG(Classifier-Free Guidance)系数。 |
|
| 263 |
+
| `VALIDATION_DATA_SEED` | `42` | 用于复现实验的随机种子。 |
|
| 264 |
+
| `NUM_FRAMES` | `50` | 视频生成帧数(最大 121)。*图像任务不使用该参数。* |
|
| 265 |
+
| `VIDEO_HEIGHT` / `VIDEO_WIDTH`| `768` | 空间分辨率。*编辑任务不使用该参数(由输入图像/视频决定)。* |
|
| 266 |
+
| `RESOLUTION` | `"video_480p"` | 基础分辨率预设(如 `image_768res` 或 `video_480p`)。 |
|
| 267 |
+
|
| 268 |
+
### Gradio
|
| 269 |
+
```python
|
| 270 |
+
python lance_gradio_t2v_v2t.py --gpus 0 --server-port 7860
|
| 271 |
+
```
|
| 272 |
+
|
| 273 |
+
### 基准评测
|
| 274 |
+
|
| 275 |
+
#### DPG-Bench 评测
|
| 276 |
+
|
| 277 |
+
<div align="center">
|
| 278 |
+
<table>
|
| 279 |
+
<thead>
|
| 280 |
+
<tr>
|
| 281 |
+
<th align="left">模型</th>
|
| 282 |
+
<th align="center"># Params.</th>
|
| 283 |
+
<th align="center">Global</th>
|
| 284 |
+
<th align="center">Entity</th>
|
| 285 |
+
<th align="center">Attribute</th>
|
| 286 |
+
<th align="center">Relation</th>
|
| 287 |
+
<th align="center">Other</th>
|
| 288 |
+
<th align="center">Overall</th>
|
| 289 |
+
</tr>
|
| 290 |
+
</thead>
|
| 291 |
+
<tbody>
|
| 292 |
+
<tr>
|
| 293 |
+
<td align="left" colspan="8"><i>仅生成模型</i></td>
|
| 294 |
+
</tr>
|
| 295 |
+
<tr>
|
| 296 |
+
<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>
|
| 297 |
+
</tr>
|
| 298 |
+
<tr>
|
| 299 |
+
<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>
|
| 300 |
+
</tr>
|
| 301 |
+
<tr>
|
| 302 |
+
<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>
|
| 303 |
+
</tr>
|
| 304 |
+
<tr>
|
| 305 |
+
<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>
|
| 306 |
+
</tr>
|
| 307 |
+
<tr>
|
| 308 |
+
<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>
|
| 309 |
+
</tr>
|
| 310 |
+
<tr>
|
| 311 |
+
<td align="left" colspan="8"><i>统一模型</i></td>
|
| 312 |
+
</tr>
|
| 313 |
+
<tr>
|
| 314 |
+
<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>
|
| 315 |
+
</tr>
|
| 316 |
+
<tr>
|
| 317 |
+
<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>
|
| 318 |
+
</tr>
|
| 319 |
+
<tr>
|
| 320 |
+
<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>
|
| 321 |
+
</tr>
|
| 322 |
+
<tr>
|
| 323 |
+
<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>
|
| 324 |
+
</tr>
|
| 325 |
+
<tr>
|
| 326 |
+
<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>
|
| 327 |
+
</tr>
|
| 328 |
+
<tr>
|
| 329 |
+
<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>
|
| 330 |
+
</tr>
|
| 331 |
+
<tr>
|
| 332 |
+
<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>
|
| 333 |
+
</tr>
|
| 334 |
+
<tr bgcolor="#f4e6ff">
|
| 335 |
+
<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>
|
| 336 |
+
</tr>
|
| 337 |
+
</tbody>
|
| 338 |
+
</table>
|
| 339 |
+
</div>
|
| 340 |
+
|
| 341 |
+
#### GenEval 评测
|
| 342 |
+
|
| 343 |
+
<div align="center">
|
| 344 |
+
<table>
|
| 345 |
+
<thead>
|
| 346 |
+
<tr>
|
| 347 |
+
<th align="left">模型</th>
|
| 348 |
+
<th align="center"># Params.</th>
|
| 349 |
+
<th align="center">1-Obj.</th>
|
| 350 |
+
<th align="center">2-Obj.</th>
|
| 351 |
+
<th align="center">Count</th>
|
| 352 |
+
<th align="center">Colors</th>
|
| 353 |
+
<th align="center">Position</th>
|
| 354 |
+
<th align="center">Attr.</th>
|
| 355 |
+
<th align="center">Overall</th>
|
| 356 |
+
</tr>
|
| 357 |
+
</thead>
|
| 358 |
+
<tbody>
|
| 359 |
+
<tr>
|
| 360 |
+
<td align="left" colspan="9"><i>仅生成模型</i></td>
|
| 361 |
+
</tr>
|
| 362 |
+
<tr>
|
| 363 |
+
<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>
|
| 364 |
+
</tr>
|
| 365 |
+
<tr>
|
| 366 |
+
<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>
|
| 367 |
+
</tr>
|
| 368 |
+
<tr>
|
| 369 |
+
<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>
|
| 370 |
+
</tr>
|
| 371 |
+
<tr>
|
| 372 |
+
<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>
|
| 373 |
+
</tr>
|
| 374 |
+
<tr>
|
| 375 |
+
<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>
|
| 376 |
+
</tr>
|
| 377 |
+
<tr>
|
| 378 |
+
<td align="left" colspan="9"><i>统一模型</i></td>
|
| 379 |
+
</tr>
|
| 380 |
+
<tr>
|
| 381 |
+
<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>
|
| 382 |
+
</tr>
|
| 383 |
+
<tr>
|
| 384 |
+
<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>
|
| 385 |
+
</tr>
|
| 386 |
+
<tr>
|
| 387 |
+
<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>
|
| 388 |
+
</tr>
|
| 389 |
+
<tr>
|
| 390 |
+
<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>
|
| 391 |
+
</tr>
|
| 392 |
+
<tr>
|
| 393 |
+
<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>
|
| 394 |
+
</tr>
|
| 395 |
+
<tr>
|
| 396 |
+
<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>
|
| 397 |
+
</tr>
|
| 398 |
+
<tr>
|
| 399 |
+
<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>
|
| 400 |
+
</tr>
|
| 401 |
+
<tr>
|
| 402 |
+
<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>
|
| 403 |
+
</tr>
|
| 404 |
+
<tr bgcolor="#f4e6ff">
|
| 405 |
+
<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>
|
| 406 |
+
</tr>
|
| 407 |
+
</tbody>
|
| 408 |
+
</table>
|
| 409 |
+
</div>
|
| 410 |
+
|
| 411 |
+
#### GEdit-Bench 评测
|
| 412 |
+
|
| 413 |
+
<div align="center">
|
| 414 |
+
<table>
|
| 415 |
+
<thead>
|
| 416 |
+
<tr>
|
| 417 |
+
<th align="left">模型</th>
|
| 418 |
+
<th align="center"># Params.</th>
|
| 419 |
+
<th align="center">BC</th>
|
| 420 |
+
<th align="center">CA</th>
|
| 421 |
+
<th align="center">MM</th>
|
| 422 |
+
<th align="center">MC</th>
|
| 423 |
+
<th align="center">PB</th>
|
| 424 |
+
<th align="center">ST</th>
|
| 425 |
+
<th align="center">SA</th>
|
| 426 |
+
<th align="center">SR</th>
|
| 427 |
+
<th align="center">SRp</th>
|
| 428 |
+
<th align="center">TM</th>
|
| 429 |
+
<th align="center">TT</th>
|
| 430 |
+
<th align="center">Avg/G_O</th>
|
| 431 |
+
</tr>
|
| 432 |
+
</thead>
|
| 433 |
+
<tbody>
|
| 434 |
+
<tr>
|
| 435 |
+
<td align="left" colspan="14"><i>仅生成模型</i></td>
|
| 436 |
+
</tr>
|
| 437 |
+
<tr>
|
| 438 |
+
<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>
|
| 439 |
+
</tr>
|
| 440 |
+
<tr>
|
| 441 |
+
<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>
|
| 442 |
+
</tr>
|
| 443 |
+
<tr>
|
| 444 |
+
<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>
|
| 445 |
+
</tr>
|
| 446 |
+
<tr>
|
| 447 |
+
<td align="left" colspan="14"><i>统一模型</i></td>
|
| 448 |
+
</tr>
|
| 449 |
+
<tr>
|
| 450 |
+
<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>
|
| 451 |
+
</tr>
|
| 452 |
+
<tr>
|
| 453 |
+
<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>
|
| 454 |
+
</tr>
|
| 455 |
+
<tr>
|
| 456 |
+
<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>
|
| 457 |
+
</tr>
|
| 458 |
+
<tr>
|
| 459 |
+
<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>
|
| 460 |
+
</tr>
|
| 461 |
+
<tr>
|
| 462 |
+
<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>
|
| 463 |
+
</tr>
|
| 464 |
+
<tr bgcolor="#f4e6ff">
|
| 465 |
+
<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>
|
| 466 |
+
</tr>
|
| 467 |
+
</tbody>
|
| 468 |
+
</table>
|
| 469 |
+
</div>
|
| 470 |
+
|
| 471 |
+
#### VBench 评测(视频生成)
|
| 472 |
+
|
| 473 |
+
<div align="center">
|
| 474 |
+
<table>
|
| 475 |
+
<thead>
|
| 476 |
+
<tr>
|
| 477 |
+
<th align="left">类型</th>
|
| 478 |
+
<th align="left">Model</th>
|
| 479 |
+
<th align="center"># Params.</th>
|
| 480 |
+
<th align="center">Total Score ↑</th>
|
| 481 |
+
</tr>
|
| 482 |
+
</thead>
|
| 483 |
+
<tbody>
|
| 484 |
+
<tr>
|
| 485 |
+
<td align="center" rowspan="12"><i>Gen. Only</i></td>
|
| 486 |
+
<td align="left">ModelScope</td><td align="center">1.7B</td><td align="center">75.75</td>
|
| 487 |
+
</tr>
|
| 488 |
+
<tr>
|
| 489 |
+
<td align="left">LaVie</td><td align="center">3B</td><td align="center">77.08</td>
|
| 490 |
+
</tr>
|
| 491 |
+
<tr>
|
| 492 |
+
<td align="left">Show-1</td><td align="center">6B</td><td align="center">78.93</td>
|
| 493 |
+
</tr>
|
| 494 |
+
<tr>
|
| 495 |
+
<td align="left">AnimateDiff-V2</td><td align="center">-</td><td align="center">80.27</td>
|
| 496 |
+
</tr>
|
| 497 |
+
<tr>
|
| 498 |
+
<td align="left">VideoCrafter-2.0</td><td align="center">-</td><td align="center">80.44</td>
|
| 499 |
+
</tr>
|
| 500 |
+
<tr>
|
| 501 |
+
<td align="left">CogVideoX</td><td align="center">5B</td><td align="center">81.61</td>
|
| 502 |
+
</tr>
|
| 503 |
+
<tr>
|
| 504 |
+
<td align="left">Kling</td><td align="center">-</td><td align="center">81.85</td>
|
| 505 |
+
</tr>
|
| 506 |
+
<tr>
|
| 507 |
+
<td align="left">Open-Sora-2.0</td><td align="center">-</td><td align="center">81.71</td>
|
| 508 |
+
</tr>
|
| 509 |
+
<tr>
|
| 510 |
+
<td align="left">Gen-3</td><td align="center">-</td><td align="center">82.32</td>
|
| 511 |
+
</tr>
|
| 512 |
+
<tr>
|
| 513 |
+
<td align="left">Step-Video-T2V</td><td align="center">30B</td><td align="center">81.83</td>
|
| 514 |
+
</tr>
|
| 515 |
+
<tr>
|
| 516 |
+
<td align="left">Hunyuan Video</td><td align="center">-</td><td align="center">83.43</td>
|
| 517 |
+
</tr>
|
| 518 |
+
<tr>
|
| 519 |
+
<td align="left">Wan2.1-T2V</td><td align="center">14B</td><td align="center">83.69</td>
|
| 520 |
+
</tr>
|
| 521 |
+
<tr>
|
| 522 |
+
<td align="center" rowspan="6"><i>Unified</i></td>
|
| 523 |
+
<td align="left">HaproOmni</td><td align="center">7B</td><td align="center">78.10</td>
|
| 524 |
+
</tr>
|
| 525 |
+
<tr>
|
| 526 |
+
<td align="left">Emu3</td><td align="center">8B</td><td align="center">80.96</td>
|
| 527 |
+
</tr>
|
| 528 |
+
<tr>
|
| 529 |
+
<td align="left">VILA-U</td><td align="center">7B</td><td align="center">74.01</td>
|
| 530 |
+
</tr>
|
| 531 |
+
<tr>
|
| 532 |
+
<td align="left">Show-o2</td><td align="center">2B</td><td align="center">81.34</td>
|
| 533 |
+
</tr>
|
| 534 |
+
<tr>
|
| 535 |
+
<td align="left">TUNA</td><td align="center">1.5B</td><td align="center"><u>84.06</u></td>
|
| 536 |
+
</tr>
|
| 537 |
+
<tr bgcolor="#f4e6ff">
|
| 538 |
+
<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>
|
| 539 |
+
</tr>
|
| 540 |
+
</tbody>
|
| 541 |
+
</table>
|
| 542 |
+
</div>
|
| 543 |
+
|
| 544 |
+
#### 运行基准评测
|
| 545 |
+
|
| 546 |
+
`benchmarks/` 目录下提供了可直接运行的基准评测脚本:
|
| 547 |
+
|
| 548 |
+
| 基准 | 模态 | 脚本 |
|
| 549 |
+
|------------------------|----------|---------------------------------------------------------------|
|
| 550 |
+
| GenEVAL(图像生成) | 图像 | `benchmarks/image_gen/GenEVAL/sample_GenEVAL.sh` |
|
| 551 |
+
| DPG(图像生成) | 图像 | `benchmarks/image_gen/DPG/sample_DPG.sh` |
|
| 552 |
+
| GEdit(图像编辑) | 图像 | `benchmarks/image_gen/GEdit/sample_GEdit.sh` |
|
| 553 |
+
| VBench(视频生成) | 视频 | `benchmarks/video_gen/Vbench/sample_vbench.sh` |
|
| 554 |
+
|
| 555 |
+
|
| 556 |
+
## 📄 许可证
|
| 557 |
+
|
| 558 |
+
Copyright 2025 Bytedance Ltd. and/or its affiliates.
|
| 559 |
+
|
| 560 |
+
## 💖 引用
|
| 561 |
+
|
| 562 |
+
如果 Lance 对您的项目或研究有帮助,欢迎 🌟 本仓库,并使用以下 BibTeX 引用我们的工作:
|
| 563 |
+
|
| 564 |
+
```bibtex
|
| 565 |
+
@misc{lance2026,
|
| 566 |
+
title = {Lance: Unified Multimodal Modeling by Multi-Task Synergy},
|
| 567 |
+
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},
|
| 568 |
+
year = {2026},
|
| 569 |
+
note = {Manuscript}
|
| 570 |
+
}
|
| 571 |
+
```
|
| 572 |
+
|
| 573 |
+
## 📞 联系方式
|
| 574 |
+
|
| 575 |
+
如有问题、反馈或合作需求,请联系 [Mengqi Huang](https://corleone-huang.github.io/) 和 [Jianzhu Guo](https://guojianzhu.com/)。
|
Wan2.2_VAE.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20eb789667fa5e60e7516bf509512f6cb61f01b0aa0695eadaea930c13892b36
|
| 3 |
+
size 2818839170
|
assets/benchmarks/benchmark-overview.png
ADDED
|
Git LFS Details
|
assets/image-editing/image-editing-overview.webp
ADDED
|
Git LFS Details
|
assets/image-understanding/cases/image-understanding-case-01.png
ADDED
|
Git LFS Details
|
assets/image-understanding/cases/image-understanding-case-02.png
ADDED
|
assets/image-understanding/cases/image-understanding-case-03.png
ADDED
|
Git LFS Details
|
assets/image-understanding/cases/image-understanding-case-04.png
ADDED
|
Git LFS Details
|
assets/image-understanding/cases/image-understanding-case-05.png
ADDED
|
Git LFS Details
|
assets/image-understanding/cases/image-understanding-case-06.png
ADDED
|
Git LFS Details
|
assets/intelligent-video/previews/intelligent-video-demo-01.gif
ADDED
|
assets/intelligent-video/previews/intelligent-video-demo-02.gif
ADDED
|
assets/intelligent-video/previews/intelligent-video-demo-03.gif
ADDED
|
assets/intelligent-video/previews/intelligent-video-demo-04.gif
ADDED
|
assets/intelligent-video/videos/intelligent-video-demo-01.mp4
ADDED
|
Binary file (25 kB). View file
|
|
|
assets/intelligent-video/videos/intelligent-video-demo-02.mp4
ADDED
|
Binary file (28 kB). View file
|
|
|
assets/intelligent-video/videos/intelligent-video-demo-03.mp4
ADDED
|
Binary file (30.6 kB). View file
|
|
|
assets/intelligent-video/videos/intelligent-video-demo-04.mp4
ADDED
|
Binary file (27.5 kB). View file
|
|
|
assets/logo/lance-logo.webp
ADDED
|
Git LFS Details
|
assets/multi-turn-editing/previews/multi-turn-editing-demo-01.gif
ADDED
|
Git LFS Details
|
assets/multi-turn-editing/videos/multi-turn-editing-demo-01.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf8a36b7a94b0d4769d6ce4c5ccad25e3cf5bb22a000f57e4e5cbb05b7854fb4
|
| 3 |
+
size 1915287
|
assets/text-to-image/text-to-image-overview.webp
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-01.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-02.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-03.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-04.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-05.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-06.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-07.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/previews/text-to-video-demo-08.gif
ADDED
|
Git LFS Details
|
assets/text-to-video/videos/text-to-video-demo-01.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b76e0bffa453aa61da2be454dab728da967badcd2c80d5bb3b330e1810a65cc
|
| 3 |
+
size 7186230
|
assets/text-to-video/videos/text-to-video-demo-02.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0b04500bd433bc5705e080001a02d7647252dff4e7cdb48e42efba5a8c721a1
|
| 3 |
+
size 2826861
|
assets/text-to-video/videos/text-to-video-demo-03.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6d1254b88c0ee823083a0c256c25adbe2b20ad0eb1f27a31e6dc62e35f4ecb5
|
| 3 |
+
size 2854502
|