Improve dataset card: add paper link and update metadata

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +37 -33
README.md CHANGED
@@ -1,41 +1,43 @@
1
  ---
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
- - name: jpg
5
- dtype: image
6
- - name: txt
7
- dtype: string
8
- - name: njson
9
- dtype: string
10
- - name: samlens.npy
11
- dtype: binary
12
- - name: samcat.npy
13
- dtype: binary
14
  splits:
15
- - name: train
16
- num_examples: 10968539
17
  configs:
18
- - config_name: default
19
- data_files:
20
- - split: train
21
- path: "cc12m-train-*.tar"
22
- license: cc-by-4.0
23
- task_categories:
24
- - zero-shot-image-classification
25
- - image-to-text
26
- - text-to-image
27
  tags:
28
- - clip
29
- - webdataset
30
- - sam
31
- - region-phrase-alignment
32
- size_categories:
33
- - 10M<n<100M
34
  ---
35
 
36
  # CC12M with SAM Regions and Parse-Tree Phrases
37
 
38
- Pre-processed [CC12M](https://github.com/google-research-datasets/conceptual-12m) dataset for training [PowerCLIP](https://github.com/KMasaki/PowerCLIP).
 
 
39
 
40
  Each sample contains the original image and caption plus two precomputed annotations:
41
 
@@ -44,7 +46,7 @@ Each sample contains the original image and caption plus two precomputed annotat
44
 
45
  ## Format
46
 
47
- WebDataset tar archives (2176 shards). Each sample contains:
48
 
49
  ```
50
  {key}.jpg # Image
@@ -57,6 +59,8 @@ WebDataset tar archives (2176 shards). Each sample contains:
57
 
58
  ## Usage
59
 
 
 
60
  ```python
61
  import webdataset as wds
62
 
@@ -68,7 +72,7 @@ for sample in dataset:
68
  # by PowerCLIP's data pipeline
69
  ```
70
 
71
- Or use with PowerCLIP directly:
72
  ```bash
73
  torchrun --nproc_per_node 8 -m training.main \
74
  --train-data "cc12m-train-{0000..2175}.tar" \
@@ -77,6 +81,6 @@ torchrun --nproc_per_node 8 -m training.main \
77
 
78
  ## Source
79
 
80
- - Images & captions: [Conceptual 12M](https://github.com/google-research-datasets/conceptual-12m) (CC-BY-4.0)
81
- - SAM regions: [Segment Anything (ViT-H)](https://github.com/facebookresearch/segment-anything)
82
- - Parse-tree phrases: [spaCy](https://spacy.io/) `en_core_web_sm`
 
1
  ---
2
+ license: cc-by-4.0
3
+ size_categories:
4
+ - 10M<n<100M
5
+ task_categories:
6
+ - zero-shot-image-classification
7
+ - image-to-text
8
+ - text-to-image
9
  dataset_info:
10
  features:
11
+ - name: jpg
12
+ dtype: image
13
+ - name: txt
14
+ dtype: string
15
+ - name: njson
16
+ dtype: string
17
+ - name: samlens.npy
18
+ dtype: binary
19
+ - name: samcat.npy
20
+ dtype: binary
21
  splits:
22
+ - name: train
23
+ num_examples: 10968539
24
  configs:
25
+ - config_name: default
26
+ data_files:
27
+ - split: train
28
+ path: cc12m-train-*.tar
 
 
 
 
 
29
  tags:
30
+ - clip
31
+ - webdataset
32
+ - sam
33
+ - region-phrase-alignment
 
 
34
  ---
35
 
36
  # CC12M with SAM Regions and Parse-Tree Phrases
37
 
38
+ This repository contains the pre-processed [CC12M](https://github.com/google-research-datasets/conceptual-12m) dataset used for training **PowerCLIP**, as presented in the paper [PowerCLIP: Powerset Alignment for Contrastive Pre-Training](https://arxiv.org/abs/2511.23170).
39
+
40
+ The official code is available at [KMasaki0210/PowerCLIP](https://github.com/KMasaki0210/PowerCLIP).
41
 
42
  Each sample contains the original image and caption plus two precomputed annotations:
43
 
 
46
 
47
  ## Format
48
 
49
+ The data is stored in WebDataset tar archives (2176 shards). Each sample contains:
50
 
51
  ```
52
  {key}.jpg # Image
 
59
 
60
  ## Usage
61
 
62
+ You can load the dataset using the `webdataset` library:
63
+
64
  ```python
65
  import webdataset as wds
66
 
 
72
  # by PowerCLIP's data pipeline
73
  ```
74
 
75
+ Or use it with the PowerCLIP training script directly:
76
  ```bash
77
  torchrun --nproc_per_node 8 -m training.main \
78
  --train-data "cc12m-train-{0000..2175}.tar" \
 
81
 
82
  ## Source
83
 
84
+ - **Images & captions:** [Conceptual 12M](https://github.com/google-research-datasets/conceptual-12m) (CC-BY-4.0)
85
+ - **SAM regions:** [Segment Anything (ViT-H)](https://github.com/facebookresearch/segment-anything)
86
+ - **Parse-tree phrases:** [spaCy](https://spacy.io/) `en_core_web_sm`