prithivMLmods commited on
Commit
4b58734
·
verified ·
1 Parent(s): 252f060

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +93 -1
README.md CHANGED
@@ -33,4 +33,96 @@ tags:
33
  - synthetic-captions
34
  - deep-caption
35
  - image
36
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  - synthetic-captions
34
  - deep-caption
35
  - image
36
+ ---
37
+
38
+ # MultiImage-Caption
39
+
40
+ **MultiImage-Caption** is a multimodal dense captioning dataset featuring **10,602** entries designed for training, supervised fine-tuning (SFT), and evaluating multi-image Vision-Language Models (such as Qwen2-VL, LLaVA-NeXT, and PaliGemma).
41
+
42
+ Each sample pairs an interleaved set of multiple images (`images list`) with comprehensive, comparative, and granular descriptive captions (`response`) analyzing the context, subjects, and interactions across all provided images.
43
+
44
+ - **Curator:** [prithivMLmods](https://huggingface.co/prithivMLmods)
45
+ - **Total Samples:** 10,602 rows
46
+ - **Total Size:** ~4.43 GB
47
+ - **Format:** Parquet (`image`, `response`)
48
+ - **Modalities:** Image, Text
49
+ - **Split:** Train
50
+
51
+ ## Dataset Structure & Schema
52
+
53
+ ### Feature Fields
54
+
55
+ | Field | Type | Description |
56
+ | :--- | :--- | :--- |
57
+ | `image` | `Sequence[Image]` | A list of multiple target RGB images grouped together per entry |
58
+ | `response` | `string` | Dense, structured textual explanation breaking down and comparing each individual image |
59
+
60
+ ### Example Response Structure
61
+
62
+ ```text
63
+ Here is a detailed explanation of each image:
64
+
65
+ **Image 1**: This photograph captures an energetic moment at an outdoor event...
66
+ **Image 2**: A contrasting perspective showing subjects interacting with their surroundings...
67
+ ```
68
+
69
+ ## How to Use
70
+
71
+ ### Loading with `datasets`
72
+
73
+ ```python
74
+ from datasets import load_dataset
75
+
76
+ # Load dataset from the Hugging Face Hub
77
+ dataset = load_dataset("prithivMLmods/MultiImage-Caption", split="train")
78
+
79
+ # Access a single sample
80
+ sample = dataset[0]
81
+ images = sample["image"] # List of PIL Images
82
+ response = sample["response"] # Multi-image detailed caption
83
+
84
+ print(f"Number of images in sample: {len(images)}")
85
+ print("Response preview:\n", response[:250])
86
+ ```
87
+
88
+ ### Formatting for Multi-Image VLM SFT
89
+
90
+ ```python
91
+ def format_multi_image_conversation(example):
92
+ num_images = len(example["image"])
93
+ image_tokens = "".join([f"<image_{i+1}>\n" for i in range(num_images)])
94
+
95
+ prompt = (
96
+ f"{image_tokens}Provide a detailed, step-by-step description and comparative "
97
+ "analysis of each of the provided images."
98
+ )
99
+
100
+ return {
101
+ "images": example["image"],
102
+ "prompt": prompt,
103
+ "completion": example["response"]
104
+ }
105
+
106
+ ```
107
+
108
+ ## Intended Uses
109
+
110
+ * **Multi-Image Reasoning:** Training models to correlate, compare, and reason over sequences of visual inputs simultaneously.
111
+ * **Dense Captioning:** Generating rich, descriptive long-form visual commentary instead of brief single-sentence captions.
112
+ * **Interleaved Multimodal Instruction-Tuning:** Building datasets for conversational agents handling multi-image document analysis, video keyframes, or side-by-side visual comparisons.
113
+
114
+ ## License
115
+
116
+ This dataset is distributed under the **Apache-2.0 License**.
117
+
118
+ ## Citation
119
+
120
+ ```bibtex
121
+ @misc{prithivmlmods2026multiimagecaption,
122
+ title = {MultiImage-Caption: A Dense Multi-Image Multimodal Dataset},
123
+ author = {prithivMLmods},
124
+ year = {2026},
125
+ publisher = {Hugging Face},
126
+ howpublished = {\url{https://huggingface.co/datasets/prithivMLmods/MultiImage-Caption}}
127
+ }
128
+ ```