FireCRT commited on
Commit
b2171b3
·
verified ·
1 Parent(s): ffec5e4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +150 -0
README.md CHANGED
@@ -1,5 +1,155 @@
1
  ---
2
  license: cc-by-sa-4.0
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
 
5
  # CoinVE-Bench
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-sa-4.0
3
+ task_categories:
4
+ - video-text-to-video
5
+ language:
6
+ - en
7
+ tags:
8
+ - video-editing
9
+ - compositional-editing
10
+ - instruction-guided
11
+ - benchmark
12
+ - vllm-evaluation
13
+ size_categories:
14
+ - n<1K
15
  ---
16
 
17
  # CoinVE-Bench
18
+
19
+ <a href="https://arxiv.org/abs/xxxx.xxxxx"><img src="https://img.shields.io/static/v1?label=Tech%20Report&message=Arxiv&color=red"></a> &ensp;
20
+ <a href="https://github.com/coinve200k/CoinVE-200K/tree/main/CoinVE-Bench"><img src="https://img.shields.io/static/v1?label=GitHub&message=CoinVE-Bench&color=blue"></a> &ensp;
21
+
22
+ ---
23
+
24
+ ## ✨ Highlights
25
+
26
+ - **Compositional Editing Benchmark**: CoinVE-Bench is a benchmark dedicated to compositional (multi-instruction) video editing evaluation, featuring 361 test cases with 2–5 instructions per sample.
27
+ - **Region-Aware Evaluation**: Per-instruction masks enable fine-grained checks of whether each edit is confined to the correct region.
28
+ - **Multi-Dimensional Metrics**: Comprehensive evaluation across editing accuracy, physical naturalness, and semantic preservation.
29
+ - **VLLM-Based Scoring**: Leveraging vision-language models (e.g., Gemini) for human-aligned assessment.
30
+
31
+
32
+ ## 📊 Benchmark Statistics
33
+
34
+ | Metric | Value |
35
+ |--------|-------|
36
+ | Total test samples | 361 |
37
+ | Instructions per sample | 2–5 |
38
+ | Checklist questions | 4,131 |
39
+ | Evaluation dimensions | 3 (Editing Accuracy / Physical Naturalness / Semantic Preservation) |
40
+
41
+ ### Scoring Dimensions & Metrics
42
+
43
+ All metrics are scored by **Gemini 3.6 Flash** (default; configurable via `--model`) using a checklist-based VLLM protocol.
44
+
45
+ | Dimension | Metric (Abbr.) | Range | # Questions | Description |
46
+ |-----------|-----------------|-------|-------------|-------------|
47
+ | **Editing Accuracy** (per instruction) | Semantic Accuracy (SA) | [0, 100] | 1,081 | Correct execution of the intended edit semantics. |
48
+ | | Scope Accuracy (SPA) | [0, 100] | 379 | Correct edit localization without leakage or interference. |
49
+ | | Editing Persistence (EP) | [0, 100] | 923 | Temporal consistency of the edit throughout the video. |
50
+ | **Physical Naturalness** | Appearance Naturalness (AN) | [0, 100] | 356 | Natural blending of lighting, shadows, textures, and style. |
51
+ | | Scale Consistency (SC) | [0, 100] | 521 | Plausibility of the edited object's scale and perspective. |
52
+ | | Motion Naturalness (MN) | [0, 100] | 447 | Plausibility of motion and physical interactions. |
53
+ | **Semantic Preservation** | Content Preservation (CP) | [0, 100] | 424 | Preservation of non-edited regions, objects, and structures. |
54
+
55
+ **Scoring formulas:**
56
+ - ACC-type metrics (SA / SPA / EP / AN / SC / MN): `score = num_correct / num_questions × 100`
57
+ - Score-type metric (CP): `score = mean(score) × 10` (each question is scored 0–10, then scaled to [0, 100])
58
+ - Dimension score = arithmetic mean of its metric `score_100` values
59
+
60
+ ### Question Types
61
+
62
+ | Type | # Questions | Videos Uploaded | Answer Format |
63
+ |------|-------------|-----------------|---------------|
64
+ | Single True/False (Single-TF) | 2,524 | Edited Video only | Yes / No |
65
+ | A/B Multiple Choice Question (AB-MCQ) | 609 | Edited Video only | A / B / A and B |
66
+ | Dual True/False (Dual-TF) | 574 | Source Video + Edited Video | Yes / No |
67
+ | Score Multiple Choice Question (Score-MCQ) | 424 | Source Video + Edited Video | 0–10 score |
68
+
69
+
70
+ ## 📁 Dataset Structure
71
+
72
+ ```text
73
+ CoinVE-Bench/
74
+ ├── src_videos/
75
+ │ ├── 9CicJDFN1TA_9_0to183.mp4
76
+ │ ├── gWG0LiuZnFQ_8_0to137.mp4
77
+ │ ├── JwVDrRmyoXc_51_0to172.mp4
78
+ │ └── ...
79
+ └── checklist_json/
80
+ └── coinve-bench-361-checklist.json
81
+ ```
82
+
83
+ Source videos are named `<youtube_id>_<clip_index>_<start>to<end>.mp4` and are referenced by the `src_video` field of each case in the checklist (e.g. `src_videos/9CicJDFN1TA_9_0to183.mp4`).
84
+
85
+
86
+ ## 🔧 Evaluation
87
+
88
+ Evaluation is a two-stage pipeline: (1) run your editing model on the 361 source videos to produce edited videos, (2) score them with the Gemini-based evaluator.
89
+
90
+ ### 1. Run Inference on CoinVE-Bench
91
+
92
+ Generate one edited video per test case using your model. For CoinVE-Edit, use the inference scripts in the [CoinVE-Edit](https://huggingface.co/FireCRT/CoinVE-Edit) model repository.
93
+
94
+ ### 2. Prepare Edited Videos
95
+
96
+ The evaluator expects **one flat directory** of edited MP4 files with a strict naming convention:
97
+
98
+ ```text
99
+ edited_videos/your_model/
100
+ ├── 0.mp4
101
+ ├── 1.mp4
102
+ ├── 2.mp4
103
+ └── ...
104
+ └── 360.mp4
105
+ ```
106
+
107
+ - **Format**: MP4 (`.mp4`).
108
+ - **Naming**: `<case_id>.mp4` where `<case_id>` is the integer `id` field of each case in `checklist_json/coinve-bench-361-checklist.json` (range 0–360, **no zero-padding**).
109
+ - **Source video pairing**: Video A (original) is read from `case["src_video"]` inside the checklist; you do **not** need to place source videos in this directory.
110
+ - **Missing videos**: if a case's edited video is absent, all its questions are recorded with `model_answer = null` and counted as failures in the final score.
111
+
112
+ > **Note for CoinVE-Edit users**: `infer_coinve_bench.py` saves a standalone edited video at `tgt_videos/<case_id>.mp4` per case, already in the `{id}.mp4` naming convention expected by the evaluator. You can pass the `tgt_videos/` directory directly as `--gen-video-dir`.
113
+
114
+ ### 3. Run Gemini Evaluation
115
+
116
+ The evaluation code is provided in the [CoinVE-Edit](https://huggingface.co/FireCRT/CoinVE-Edit) repository. Set your Gemini API key and run:
117
+
118
+ ```bash
119
+ export GEMINI_API_KEY=your_key_here
120
+ python eval_coinbench_gemini_public.py \
121
+ --input ./checklist_json/coinve-bench-361-checklist.json \
122
+ --gen-video-dir ./edited_videos/your_model \
123
+ --prompt-dir ./system_prompts \
124
+ --out-dir ./results/your_model \
125
+ --workers 8 \
126
+ --model gemini-3.6-flash \
127
+ --timestamp
128
+ ```
129
+
130
+ The script performs everything end-to-end — Gemini calls, per-question scoring, dimension/metric aggregation, and report writing. **No separate aggregation step is needed.**
131
+
132
+
133
+
134
+ ## 📜 Citation
135
+
136
+ If you find CoinVE-Bench useful for your research, please cite our work:
137
+
138
+ ```bibtex
139
+ @article{coinve200k,
140
+ title={CoinVE-200K: A Large-Scale High-Quality Dataset for Compositional Instruction-Guided Video Editing},
141
+ author={Long, Fuchen and Wang, Cong and Gao, Zitao and Zhong, Wenhao and Cheng, Yu and Hou, Xiaolu and Li, Yan and Cao, Xiao and Sun, Xinlong and Chen, Xi and Liu, Yu},
142
+ journal={arXiv preprint arXiv:xxxx.xxxxx},
143
+ year={2026}
144
+ }
145
+ ```
146
+
147
+
148
+ ## ✉️ Contact
149
+
150
+ For any questions, issues, or collaborations, please feel free to contact longfc.ustc@gmail.com.
151
+
152
+
153
+ ## 💖 Acknowledgement
154
+
155
+ Our benchmark construction and evaluation protocol are inspired by [ReCo-Bench](https://huggingface.co/datasets/HiDream-ai/ReCo-Bench) and [OpenVE-Bench](https://huggingface.co/datasets/Lewandofski/OpenVE-Bench). Thanks to the contributors of all these remarkable projects!