titusz commited on
Commit
52a9aed
·
verified ·
1 Parent(s): 638ac2f

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +277 -41
README.md CHANGED
@@ -1,45 +1,281 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
- - name: thumbnail
5
- dtype: image
6
- - name: iscc
7
- dtype: string
8
- - name: iscc_meta
9
- dtype: string
10
- - name: iscc_semantic
11
- dtype: string
12
- - name: iscc_content
13
- dtype: string
14
- - name: iscc_data
15
- dtype: string
16
- - name: iscc_instance
17
- dtype: string
18
- - name: source_dataset
19
- dtype: string
20
- - name: source_row_id
21
- dtype: string
22
- - name: width
23
- dtype: int32
24
- - name: height
25
- dtype: int32
26
- - name: filesize
27
- dtype: int64
28
- - name: image_path
29
- dtype: string
30
- - name: caption
31
- dtype: string
32
- - name: filename
33
- dtype: string
34
- splits:
35
- - name: train
36
- num_bytes: 126556953
37
- num_examples: 31783
38
- download_size: 121526845
39
- dataset_size: 126556953
40
- configs:
41
- - config_name: default
42
- data_files:
43
- - split: train
44
- path: data/train-*
45
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - machine-generated
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license: other
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 10K<n<100K
13
+ source_datasets:
14
+ - lmms-lab/flickr30k
15
+ task_categories:
16
+ - image-feature-extraction
17
+ - zero-shot-image-classification
18
+ tags:
19
+ - iscc
20
+ - content-identification
21
+ - similarity-search
22
+ - deduplication
23
+ - image
24
+ - iso-24138
25
+ - flickr30k
26
+ pretty_name: "ISCC Codes for Flickr30k"
27
  dataset_info:
28
  features:
29
+ - name: thumbnail
30
+ dtype: image
31
+ - name: source_dataset
32
+ dtype: string
33
+ - name: source_row_id
34
+ dtype: string
35
+ - name: filename
36
+ dtype: string
37
+ - name: caption
38
+ dtype: string
39
+ - name: iscc
40
+ dtype: string
41
+ - name: iscc_meta
42
+ dtype: string
43
+ - name: iscc_semantic
44
+ dtype: string
45
+ - name: iscc_content
46
+ dtype: string
47
+ - name: iscc_data
48
+ dtype: string
49
+ - name: iscc_instance
50
+ dtype: string
51
+ - name: width
52
+ dtype: int32
53
+ - name: height
54
+ dtype: int32
55
+ - name: filesize
56
+ dtype: int32
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  ---
58
+
59
+ # ISCC Codes for Flickr30k
60
+
61
+ The [Flickr30k](https://shannon.cs.illinois.edu/DenotationGraph/) dataset enriched
62
+ with full 256-bit [ISCC](https://iscc.codes/) (International Standard Content Code)
63
+ identifiers for content identification, similarity search, and deduplication research.
64
+
65
+ ## What is ISCC?
66
+
67
+ The **International Standard Content Code** ([ISO 24138:2024](https://www.iso.org/standard/77899.html)) is a
68
+ content-derived identifier for digital media assets. Unlike traditional identifiers that are assigned
69
+ arbitrarily, ISCC codes are generated algorithmically from the content itself, enabling:
70
+
71
+ - **Content Identification**: Identify content regardless of format or location
72
+ - **Similarity Search**: Find visually or semantically similar images
73
+ - **Deduplication**: Detect exact and near-duplicate content
74
+ - **Provenance Tracking**: Link derived works to their sources
75
+
76
+ ## ISCC Units
77
+
78
+ Each record contains five 256-bit ISCC-UNITs that capture different aspects of the content:
79
+
80
+ | Unit | Field | Description |
81
+ |------|-------|-------------|
82
+ | **Meta-Code** | `iscc_meta` | Similarity based on embedded metadata (filename, title) |
83
+ | **Semantic-Code** | `iscc_semantic` | AI-based visual semantic similarity (what the image depicts) |
84
+ | **Content-Code** | `iscc_content` | Perceptual image similarity (visual appearance) |
85
+ | **Data-Code** | `iscc_data` | Raw binary data similarity (file structure) |
86
+ | **Instance-Code** | `iscc_instance` | Cryptographic hash for exact matching (like SHA-256) |
87
+
88
+ The `iscc` field contains the composite ISCC-CODE combining all units.
89
+
90
+ ## Dataset Structure
91
+
92
+ ### Data Fields
93
+
94
+ | Field | Type | Description |
95
+ |-------|------|-------------|
96
+ | `thumbnail` | image | WebP thumbnail (128x128 max) for preview |
97
+ | `source_dataset` | string | Source HuggingFace dataset path (`lmms-lab/flickr30k`) |
98
+ | `source_row_id` | string | Original row identifier in source dataset |
99
+ | `filename` | string | Original filename (e.g., `1000092795.jpg`) |
100
+ | `caption` | string | First of 5 human-written captions from Flickr30k |
101
+ | `iscc` | string | Full composite ISCC-CODE |
102
+ | `iscc_meta` | string | 256-bit Meta-Code |
103
+ | `iscc_semantic` | string | 256-bit Semantic-Code |
104
+ | `iscc_content` | string | 256-bit Content-Code |
105
+ | `iscc_data` | string | 256-bit Data-Code |
106
+ | `iscc_instance` | string | 256-bit Instance-Code |
107
+ | `width` | int | Original image width in pixels |
108
+ | `height` | int | Original image height in pixels |
109
+ | `filesize` | int | File size in bytes |
110
+
111
+ ### Data Splits
112
+
113
+ | Split | Samples |
114
+ |-------|---------|
115
+ | train | 31,783 |
116
+
117
+ ## Usage
118
+
119
+ ### Loading the Dataset
120
+
121
+ ```python
122
+ from datasets import load_dataset
123
+
124
+ ds = load_dataset("iscc/iscc-flickr30k")
125
+ ```
126
+
127
+ ### Viewing a Sample
128
+
129
+ ```python
130
+ sample = ds["train"][0]
131
+ print(f"ISCC: {sample['iscc']}")
132
+ print(f"Dimensions: {sample['width']}x{sample['height']}")
133
+ ```
134
+
135
+ ### Similarity Search Example
136
+
137
+ ```python
138
+ import iscc_core as ic
139
+
140
+ # Get two ISCC codes to compare
141
+ code1 = ds["train"][0]["iscc_content"]
142
+ code2 = ds["train"][1]["iscc_content"]
143
+
144
+ # Calculate hamming distance (0 = identical, 256 = maximally different)
145
+ distance = ic.iscc_distance(code1, code2)
146
+ print(f"Hamming distance: {distance}")
147
+
148
+ # Convert to similarity percentage
149
+ similarity = 1 - (distance / 256)
150
+ print(f"Similarity: {similarity:.1%}")
151
+ ```
152
+
153
+ ### Finding Near-Duplicates
154
+
155
+ ```python
156
+ import iscc_core as ic
157
+
158
+ # Threshold for near-duplicates (adjust based on use case)
159
+ THRESHOLD = 32 # ~87.5% similarity
160
+
161
+ reference = ds["train"][0]["iscc_content"]
162
+
163
+ for i, row in enumerate(ds["train"]):
164
+ distance = ic.iscc_distance(reference, row["iscc_content"])
165
+ if distance <= THRESHOLD and i > 0:
166
+ print(f"Near-duplicate found: row {i}, distance={distance}")
167
+ ```
168
+
169
+ ### Semantic Similarity Search
170
+
171
+ ```python
172
+ import iscc_core as ic
173
+
174
+ # Find semantically similar images (same subject/concept)
175
+ reference = ds["train"][0]["iscc_semantic"]
176
+
177
+ similar = []
178
+ for i, row in enumerate(ds["train"]):
179
+ distance = ic.iscc_distance(reference, row["iscc_semantic"])
180
+ if distance <= 64: # ~75% semantic similarity
181
+ similar.append((i, distance))
182
+
183
+ # Sort by similarity
184
+ for idx, dist in sorted(similar, key=lambda x: x[1])[:5]:
185
+ print(f"Row {idx} (distance={dist})")
186
+ ```
187
+
188
+ ## Source Data
189
+
190
+ This dataset was derived from [lmms-lab/flickr30k](https://huggingface.co/datasets/lmms-lab/flickr30k).
191
+
192
+ ### Original Flickr30k Dataset
193
+ The Flickr30k dataset contains 31,783 images collected from Flickr, each with 5
194
+ human-written captions. It is widely used for image captioning and visual-semantic
195
+ research.
196
+ **License**: The original Flickr30k images are subject to Flickr's Terms of Service.
197
+ This derivative dataset contains only ISCC codes and small 128px thumbnails for visual
198
+ verification of matches, not the original high-resolution images. Users should refer
199
+ to the original dataset for licensing details.
200
+
201
+ ### Processing
202
+
203
+ ISCC codes were generated using:
204
+ - [iscc-sdk](https://github.com/iscc/iscc-sdk) - High-level ISCC generation
205
+ - [iscc-sci](https://github.com/iscc/iscc-sci) - Semantic image codes (experimental)
206
+
207
+ All processing was performed on original resolution images. WebP thumbnails (128x128 max, quality 80)
208
+ were generated separately for dataset preview purposes.
209
+
210
+ ## Considerations
211
+
212
+ ### Intended Use
213
+
214
+ - Content identification and matching research
215
+ - Image similarity search algorithm development
216
+ - Deduplication system benchmarking
217
+ - Visual-semantic retrieval experiments
218
+ - ISCC-based indexing research
219
+
220
+ ### Limitations
221
+
222
+ - Semantic codes are generated using experimental AI models and may not capture all semantic nuances
223
+ - ISCC codes are sensitive to significant image modifications (heavy cropping, overlays, filters)
224
+ - Thumbnails are for preview only; use the source dataset for full-resolution images
225
+
226
+ ### Privacy
227
+
228
+ This dataset contains ISCC codes and thumbnails derived from the source images. Refer to the original
229
+ dataset documentation for privacy considerations.
230
+
231
+ ## Citation
232
+
233
+ If you use this dataset, please cite both this dataset and the original source:
234
+
235
+ **This Dataset:**
236
+ ```bibtex
237
+ @dataset{iscc_flickr30k,
238
+ title = {{ISCC Codes for Flickr30k}},
239
+ author = {{ISCC Foundation}},
240
+ year = {{2026}},
241
+ publisher = {{Hugging Face}},
242
+ url = {{https://huggingface.co/datasets/iscc/iscc-flickr30k}}
243
+ }
244
+ ```
245
+
246
+ **Original Flickr30k:**
247
+ ```bibtex
248
+ @article{young2014image,
249
+ title = {{From image descriptions to visual denotations: New similarity metrics
250
+ for semantic inference over event descriptions}},
251
+ author = {{Young, Peter and Lai, Alice and Hodosh, Micah and Hockenmaier, Julia}},
252
+ journal = {{Transactions of the Association for Computational Linguistics}},
253
+ volume = {{2}},
254
+ pages = {{67--78}},
255
+ year = {{2014}},
256
+ publisher = {{MIT Press}}
257
+ }
258
+ ```
259
+
260
+ **ISCC Standard:**
261
+ ```bibtex
262
+ @misc{iso24138,
263
+ title = {{ISO 24138:2024 Information and documentation -- International Standard Content Code (ISCC)}},
264
+ author = {{International Organization for Standardization}},
265
+ year = {{2024}},
266
+ url = {{https://www.iso.org/standard/77899.html}}
267
+ }
268
+ ```
269
+
270
+ ## Additional Resources
271
+
272
+ - [ISCC Foundation](https://iscc.foundation/) - Standards organization
273
+ - [ISCC Documentation](https://iscc.codes/) - Technical documentation
274
+ - [ISO 24138:2024](https://www.iso.org/standard/77899.html) - Official standard
275
+ - [iscc-sdk](https://github.com/iscc/iscc-sdk) - Python SDK for ISCC generation
276
+ - [Flickr30k Project Page](https://shannon.cs.illinois.edu/DenotationGraph/)
277
+
278
+ ## Contact
279
+
280
+ - **Dataset Issues**: [iscc-datasets GitHub](https://github.com/iscc/iscc-datasets/issues)
281
+ - **ISCC Questions**: [ISCC Foundation](https://iscc.foundation/)