PuzzleBench commited on
Commit
e59cb1a
·
verified ·
1 Parent(s): ed1fb9a

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ metadata.csv filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - image-to-text
5
+ - text-to-image
6
+ language:
7
+ - en
8
+ tags:
9
+ - laion
10
+ - recaptioned
11
+ - vision-language-alignment
12
+ - clip-training
13
+ - webdataset
14
+ pretty_name: Recaptioned LAION (Gemma-3-27B)
15
+ size_categories:
16
+ - 100K<n<1M
17
+ ---
18
+
19
+ # Recaptioned LAION
20
+
21
+ A subset of LAION recaptioned with **Gemma-3-27B-IT**. Each image is paired
22
+ with a single descriptive sentence (~20–30 words) generated by Gemma using
23
+ the prompt:
24
+
25
+ > *Describe this image in 20-30 words. Do not include any preamble or
26
+ > introduction, just the description.*
27
+
28
+ This dataset is used by the **PuzzleBench** project for vision/text
29
+ alignment training.
30
+
31
+ ## Stats
32
+
33
+ | | |
34
+ |---|---:|
35
+ | Samples | 508,025 |
36
+ | Image resolution | up to 1500×1500 (varies) |
37
+ | Format | JPEG |
38
+ | Caption type | Gemma-3-27B recaption (declarative, ~130 chars avg) |
39
+ | Shards | 30 webdataset `.tar` files (~2.4 GB each) |
40
+ | Total size | ~72 GB |
41
+
42
+ ## Format: WebDataset
43
+
44
+ The dataset ships as **30 webdataset-compatible tar shards**, the de facto
45
+ standard for large image-text corpora (used by LAION-400M, LAION-5B, CLIP
46
+ training pipelines, etc.). Each shard is a flat tar containing:
47
+
48
+ ```
49
+ shards-00000.tar
50
+ ├── 000000.jpg # raw image bytes
51
+ ├── 000000.txt # caption (utf-8)
52
+ ├── 000001.jpg
53
+ ├── 000001.txt
54
+ └── ...
55
+ ```
56
+
57
+ A `metadata.csv` with the same `image_id, url, caption` is also shipped
58
+ alongside for non-webdataset consumers.
59
+
60
+ ## Usage
61
+
62
+ ### With `webdataset` (streaming, no extraction needed)
63
+
64
+ ```python
65
+ import webdataset as wds
66
+
67
+ url = "https://huggingface.co/datasets/PuzzleBench/Recaptioned_LAION/resolve/main/shards-{00000..00029}.tar"
68
+ ds = (
69
+ wds.WebDataset(url)
70
+ .decode("pil")
71
+ .to_tuple("jpg", "txt")
72
+ )
73
+
74
+ for image, caption in ds:
75
+ # image: PIL.Image
76
+ # caption: str
77
+ ...
78
+ ```
79
+
80
+ ### With `huggingface_hub` snapshot + local extraction
81
+
82
+ ```python
83
+ from huggingface_hub import snapshot_download
84
+
85
+ snapshot_download(
86
+ repo_id="PuzzleBench/Recaptioned_LAION",
87
+ repo_type="dataset",
88
+ local_dir="recaptioned_laion",
89
+ )
90
+ ```
91
+
92
+ ### With `pandas` (captions only, no images)
93
+
94
+ ```python
95
+ import pandas as pd
96
+ df = pd.read_csv("hf://datasets/PuzzleBench/Recaptioned_LAION/metadata.csv")
97
+ # columns: image_id, url, caption
98
+ ```
99
+
100
+ ## License
101
+
102
+ This dataset of recaptions is released under **CC BY 4.0**. The underlying
103
+ images are sourced from public LAION URLs and retain their original
104
+ licensing — please consult the LAION usage terms when redistributing or
105
+ training on the image content.
106
+
107
+ ## Citation
108
+
109
+ If you use this dataset, please cite the PuzzleBench project and credit
110
+ the LAION corpus and the Gemma-3 recaptioning model.
metadata.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf3c205571c624e60f5ff85ec8fb8efd4616853c59f99f8ffe0f9fe98924abe6
3
+ size 127647881
shards-00000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:925febc10d43f7562f838b75fb556280e69966bccf76483deb8c365d676e3308
3
+ size 2375260160
shards-00001.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71f19eefb753fa3602336cb8ce98b79d575df5593819093af4f71f1e035be9e8
3
+ size 2401781760
shards-00002.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79a179ab55bc9a23d4e221e1c23658b2a347fae09a4dddbfef73c5439fa879da
3
+ size 2363115520
shards-00003.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f69f21521caf55f5d6ad66b133843096e88f7f3ca77503ae931b1a95b59222b
3
+ size 2392371200
shards-00004.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2a1069e283658dbd3883a8ef290f931283fd86455b8cb3af6288f1cfc25e5ad
3
+ size 2363136000
shards-00005.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:627abde0e869737aae2a02d13c6775658b7c10000cb35b210d8b1419248b7241
3
+ size 2370908160
shards-00006.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3a450014cad78f3eb51401592df2ae436c74e3a5d1a4a4e157c6ee95758989c
3
+ size 2347837440
shards-00007.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92c7247fe9954304198c01f0eb54dc3d6857ca12811e435906c98f9a78e4d323
3
+ size 2459023360
shards-00008.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:032aba4151d9a56a5758668b4193d042dc2d45576ba160c7505d1980b3e214ec
3
+ size 2428221440
shards-00009.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c18944b19049973a60a558796156718773bff5b4c53d54d64e904484b9bf9e9
3
+ size 2323927040
shards-00010.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0be866e119ae2131e948da41d35a25729f1d73d4e5455a6341b3b090a0cd36b5
3
+ size 2381803520
shards-00011.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b83a9a2e70e78abd94a7c3f164197e19f659f4ae198327495ed10be19b19ed0b
3
+ size 2561402880
shards-00012.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9022ce730510a4d4b33b811287b284512f33f4be682dc314e483a9be4c339c15
3
+ size 2638848000
shards-00013.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c34643671216d63664bb06e29cc0b4101bb19f7cc11d34ae686d2cab229d17f0
3
+ size 2627870720
shards-00014.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a39f58921d9290280e31f5b9f5bcfe37beb2282b2f43c5d558b4a46fd241dd7
3
+ size 2648985600
shards-00015.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5d5405d80f39d29923fe445fbeaa162ce1ec4de9cbecd1d7d21a2a2c3004d9d
3
+ size 2598195200
shards-00016.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad5ae83025a7e31b6827ae9644625d9bf2912c40b109ccadffb3f740db2e57d9
3
+ size 2555361280
shards-00017.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e70f845d2276c31c2cca7f8925141f6aa4d8ee9a4d71d1bcd46091b08523861
3
+ size 2648504320
shards-00018.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0956fa4268cdf0c60c517ee8a9143b538a4b2c5a4e8665e9c148e825e292a0d9
3
+ size 2640609280
shards-00019.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a02c1451101abec553f36b06a0ed4483c45278e9c411660abde1f98e90c2d687
3
+ size 2646855680
shards-00020.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac1a1d8b5f9e406686978edce4ce0398b300ff72dc6dc06d8fec1bcd6ce72186
3
+ size 2637393920
shards-00021.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e974176ee08d1ebcd3299364b5d704431f644cb9ef7665bee3fc17ec47bd12c6
3
+ size 2584924160
shards-00022.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85f8f41a8cdf9b05c3be0260f20261c2ec1bb1f617171adbeb890d6546500d2d
3
+ size 2581882880
shards-00023.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca9fbde305d8cabefb61c5bd6d945c6fe81a2a38f73ee094af35a399929c0a57
3
+ size 2850856960
shards-00024.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9333236eddd9672360ccbc322ba25a753c72d1bfca8e699eae744c66e397b025
3
+ size 2829701120
shards-00025.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7550deb33d3052d1772cf24d8cd83ff8e7792620355099a89fd2184433712c8
3
+ size 2709043200
shards-00026.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9eb93e5739ddd29e845dc64c31f4e98c7f8dd044bb290a612da5434ecc1adbde
3
+ size 2661222400
shards-00027.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e1fa34f5a9979aa85a3f63265ef6aa0f1152f160c23312247cfee8f4df93f2c
3
+ size 2775429120
shards-00028.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30dea5971d5131ef508703ded0db6f56e7a339fd7ab347f3a3e51147fd993d09
3
+ size 2639349760
shards-00029.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ee385130d6444bff0e17904b7f2617b98df719973b73c98881bf0da0ea1fd5b
3
+ size 2669701120