IVC-liuyuan commited on
Commit
a883b1b
·
verified ·
1 Parent(s): 1d9a03f

Add M³Diff training dataset card

Browse files
Files changed (1) hide show
  1. README.md +188 -0
README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: M³Diff Instruction-Tuning Data
3
+ language:
4
+ - en
5
+ license: other
6
+ task_categories:
7
+ - image-to-text
8
+ tags:
9
+ - image
10
+ - text
11
+ - image-difference-captioning
12
+ - multimodal
13
+ - multi-image
14
+ - visual-instruction-tuning
15
+ - m3diff
16
+ size_categories:
17
+ - 100K<n<1M
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: training_m3diff.json
23
+ ---
24
+
25
+ # M³Diff Instruction-Tuning Data
26
+
27
+ This repository contains the instruction-tuning annotations used to train
28
+ **M³Diff**, the model introduced in [OmniDiff: A Comprehensive Benchmark for
29
+ Fine-grained Image Difference Captioning](https://openaccess.thecvf.com/content/ICCV2025/html/Liu_OmniDiff_A_Comprehensive_Benchmark_for_Fine-grained_Image_Difference_Captioning_ICCV_2025_paper.html)
30
+ (ICCV 2025).
31
+
32
+ The dataset contains **896,015 question-answer records** for fine-grained
33
+ Image Difference Captioning (IDC). Each record presents two related images and
34
+ asks the model to describe the visual changes between them. This repository
35
+ contains the JSON annotations and relative image paths only; **the image files
36
+ are not included**.
37
+
38
+ Hugging Face dataset ID: `IVC-liuyuan/training_m3diff`.
39
+
40
+ ## Dataset composition
41
+
42
+ The training mixture combines OmniDiff with several established IDC datasets
43
+ covering real-world, edited, surveillance, bird, and 3D-rendered scenes.
44
+
45
+ | Source | Instruction records |
46
+ | --- | ---: |
47
+ | CLEVR-Change | 444,156 |
48
+ | CLEVR-DC | 384,466 |
49
+ | OmniDiff | 28,056 |
50
+ | spot-the-diff | 20,862 |
51
+ | birds-to-words | 14,265 |
52
+ | IEdit | 4,210 |
53
+ | **Total** | **896,015** |
54
+
55
+ The counts above refer to instruction records, not necessarily unique image
56
+ pairs. As described in the paper, captions from CLEVR-Change and CLEVR-DC are
57
+ converted into independent training samples.
58
+
59
+ OmniDiff itself is a fine-grained IDC benchmark with 15,598 human-captioned
60
+ image pairs collected from 324 diverse indoor and outdoor scenarios. It
61
+ contains real-world and 3D-rendered scenes, covers 12 visual change types, and
62
+ has captions averaging 60 words. The change taxonomy includes viewpoint,
63
+ illumination, addition, disappearance, removal, substitution, size, color,
64
+ orientation, pose, OCR, and counting.
65
+
66
+ ## Data format
67
+
68
+ `training_m3diff.json` is one JSON array. Every record has the following
69
+ structure:
70
+
71
+ ```json
72
+ {
73
+ "image_id": "005422.png",
74
+ "image": [
75
+ "CLEVR-Change/nsc_images/CLEVR_nonsemantic_005422.png",
76
+ "CLEVR-Change/sc_images/CLEVR_semantic_005422.png"
77
+ ],
78
+ "conversations": [
79
+ {
80
+ "from": "human",
81
+ "value": "What modifications can be observed between these two pictures? <image><image>Difference:"
82
+ },
83
+ {
84
+ "from": "gpt",
85
+ "value": "the small yellow cylinder changed to brown."
86
+ }
87
+ ]
88
+ }
89
+ ```
90
+
91
+ Fields:
92
+
93
+ - `image_id` or `id`: source-specific sample identifier. Older converted
94
+ records use `image_id`, while some records use `id`.
95
+ - `image`: two paths relative to the common image root, ordered as the first
96
+ and second images being compared.
97
+ - `conversations`: a two-turn LLaVA-style conversation. The human turn contains
98
+ two `<image>` placeholders and the GPT turn contains the target difference
99
+ caption.
100
+
101
+ All 896,015 records contain exactly two image paths and one human/GPT
102
+ conversation pair. The data uses 30 paraphrased prompt templates to reduce
103
+ dependence on a single question formulation.
104
+
105
+ ## Loading
106
+
107
+ Load the annotations directly from the Hub:
108
+
109
+ ```python
110
+ from datasets import load_dataset
111
+
112
+ dataset = load_dataset("IVC-liuyuan/training_m3diff", split="train")
113
+ print(dataset[0])
114
+ ```
115
+
116
+ Alternatively, download the raw JSON:
117
+
118
+ ```python
119
+ from huggingface_hub import hf_hub_download
120
+
121
+ annotation_path = hf_hub_download(
122
+ repo_id="IVC-liuyuan/training_m3diff",
123
+ repo_type="dataset",
124
+ filename="training_m3diff.json",
125
+ )
126
+ ```
127
+
128
+ To train M³Diff, arrange the separately obtained images under a common root
129
+ so the paths in each record resolve as follows:
130
+
131
+ ```text
132
+ <IMAGE_ROOT>/
133
+ ├── OmniDiff/
134
+ ├── CLEVR-Change/
135
+ ├── CLEVR-DC/
136
+ ├── IEdit/
137
+ ├── spot-the-diff/
138
+ └── birds-to-words/
139
+ ```
140
+
141
+ ## Intended use
142
+
143
+ This dataset is intended for research on image difference captioning,
144
+ fine-grained paired-image understanding, and multimodal instruction tuning. It
145
+ was assembled for training M³Diff, which augments LLaVA-OneVision-7B with a
146
+ Multi-scale Differential Perception (MDP) module.
147
+
148
+ ## Limitations and responsible use
149
+
150
+ - The JSON file does not contain images and is not a self-contained training
151
+ package. Users must obtain each image dataset from its authorized source.
152
+ - Source datasets differ in domain, annotation style, collection process, and
153
+ license. Their mixture may preserve source-specific biases and artifacts.
154
+ - Captions may omit, misdescribe, or ambiguously localize changes. They should
155
+ not be treated as ground truth for safety-critical decisions.
156
+ - Real-world imagery may carry privacy, copyright, or representation concerns;
157
+ users must review the terms and documentation of each source dataset.
158
+
159
+ ## License
160
+
161
+ The repository aggregates annotation records derived from multiple datasets,
162
+ so no single license is asserted for the complete mixture. The annotations,
163
+ image paths, and separately downloaded images remain subject to the terms of
164
+ OmniDiff and their respective upstream datasets: Spot-the-Diff, IEdit,
165
+ Birds-to-Words, CLEVR-Change, and CLEVR-DC. Consult each source before use or
166
+ redistribution. Uploading this JSON file does not relicense any image.
167
+
168
+ ## Citation
169
+
170
+ If this training set or M³Diff is useful in your research, please cite:
171
+
172
+ ```bibtex
173
+ @inproceedings{Liu_2025_ICCV,
174
+ author = {Liu, Yuan and Hou, Saihui and Hou, Saijie and Du, Jiabao and Meng, Shibei and Huang, Yongzhen},
175
+ title = {OmniDiff: A Comprehensive Benchmark for Fine-grained Image Difference Captioning},
176
+ booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
177
+ month = {October},
178
+ year = {2025},
179
+ pages = {21440--21449}
180
+ }
181
+ ```
182
+
183
+ ## Acknowledgements
184
+
185
+ M³Diff builds on OmniDiff, LLaVA-OneVision, Qwen2, and SigLIP. We also
186
+ acknowledge the creators of Spot-the-Diff, IEdit, Birds-to-Words,
187
+ CLEVR-Change, and CLEVR-DC. Please cite the corresponding upstream works when
188
+ using their portions of this training mixture.