Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -1,33 +1,4 @@
|
|
1 |
---
|
2 |
-
dataset_info:
|
3 |
-
features:
|
4 |
-
- name: image
|
5 |
-
dtype: image
|
6 |
-
- name: id
|
7 |
-
dtype: string
|
8 |
-
- name: filepath
|
9 |
-
dtype: string
|
10 |
-
- name: conversations
|
11 |
-
list:
|
12 |
-
- name: from
|
13 |
-
dtype: string
|
14 |
-
- name: value
|
15 |
-
dtype: string
|
16 |
-
- name: blip_caption
|
17 |
-
dtype: string
|
18 |
-
- name: url
|
19 |
-
dtype: string
|
20 |
-
splits:
|
21 |
-
- name: train
|
22 |
-
num_bytes: 32275649949.488
|
23 |
-
num_examples: 558128
|
24 |
-
download_size: 27864965211
|
25 |
-
dataset_size: 32275649949.488
|
26 |
-
configs:
|
27 |
-
- config_name: default
|
28 |
-
data_files:
|
29 |
-
- split: train
|
30 |
-
path: data/train-*
|
31 |
license: other
|
32 |
language:
|
33 |
- pt
|
@@ -92,9 +63,8 @@ Portuguese.
|
|
92 |
|
93 |
The dataset consists of the following features:
|
94 |
|
95 |
-
- **image:** a PIL image.
|
96 |
- **id:** an identifier (name of the respective file) for that image.
|
97 |
-
- **
|
98 |
- **conversations:** a list of dictionaries, where each dictionary represents a message or an entry in a conversation.
|
99 |
- **blip_caption:** the original BLIP caption.
|
100 |
- **url:** the url of the corresponding image.
|
@@ -103,10 +73,8 @@ The dataset consists of the following features:
|
|
103 |
|
104 |
```python
|
105 |
{
|
106 |
-
|
107 |
-
"image": PIL.Image,
|
108 |
"id": "004539375",
|
109 |
-
"
|
110 |
"conversations": [
|
111 |
{
|
112 |
"from": "human",
|
@@ -126,16 +94,33 @@ The dataset consists of the following features:
|
|
126 |
|
127 |
Available splits are `train`.
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
```python
|
130 |
-
from
|
131 |
|
132 |
-
|
|
|
133 |
|
134 |
-
|
135 |
-
dataset = load_dataset("TucanoBR/ViTucano-Pretrain", split='train', streaming=True)
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
```
|
138 |
|
|
|
|
|
139 |
## Dataset Creation
|
140 |
|
141 |
### Curation Rationale
|
@@ -176,8 +161,6 @@ This dataset has has been translated using translation engines, potentially resu
|
|
176 |
|
177 |
Users of this dataset must comply with license of [CC-3M](https://github.com/google-research-datasets/conceptual-captions/blob/master/LICENSE) and [BLIP](https://github.com/salesforce/BLIP/blob/main/LICENSE.txt) (if you use their synthetic caption).
|
178 |
|
179 |
-
### Licensing Information
|
180 |
-
|
181 |
Creative Commons Attribution 4.0 International; and it should abide by the [policy of OpenAI](https://openai.com/policies/terms-of-use).
|
182 |
|
183 |
### Citation Information
|
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
license: other
|
3 |
language:
|
4 |
- pt
|
|
|
63 |
|
64 |
The dataset consists of the following features:
|
65 |
|
|
|
66 |
- **id:** an identifier (name of the respective file) for that image.
|
67 |
+
- **image:** the path to the file in the original folder configuration.
|
68 |
- **conversations:** a list of dictionaries, where each dictionary represents a message or an entry in a conversation.
|
69 |
- **blip_caption:** the original BLIP caption.
|
70 |
- **url:** the url of the corresponding image.
|
|
|
73 |
|
74 |
```python
|
75 |
{
|
|
|
|
|
76 |
"id": "004539375",
|
77 |
+
"image": "train/00453/004539375.jpg",
|
78 |
"conversations": [
|
79 |
{
|
80 |
"from": "human",
|
|
|
94 |
|
95 |
Available splits are `train`.
|
96 |
|
97 |
+
To use this dataset, you will need to download both the `data-pretraining.json` and `images.zip` files available in this folder:
|
98 |
+
|
99 |
+
```bash
|
100 |
+
wget https://huggingface.co/datasets/TucanoBR/ViTucano-Pretrain/resolve/main/data-pretraining.json
|
101 |
+
wget https://huggingface.co/datasets/TucanoBR/ViTucano-Pretrain/resolve/main/images.zip
|
102 |
+
```
|
103 |
+
|
104 |
+
You can also do this via the `huggingface_hub` library:
|
105 |
+
|
106 |
```python
|
107 |
+
from huggingface_hub import snapshot_download
|
108 |
|
109 |
+
snapshot_download(repo_id="ViTucano-Pretrain", repo_type="dataset")
|
110 |
+
```
|
111 |
|
112 |
+
Unzip the images in a way that you get this folder structure (e.g., `unzip images.zip -d "path/to/train"`):
|
|
|
113 |
|
114 |
+
```bash
|
115 |
+
βββ train
|
116 |
+
βββ 00000
|
117 |
+
βββ 00001
|
118 |
+
βββ 00002
|
119 |
+
βββ etc ...
|
120 |
```
|
121 |
|
122 |
+
Done! The data is ready to train your projector.
|
123 |
+
|
124 |
## Dataset Creation
|
125 |
|
126 |
### Curation Rationale
|
|
|
161 |
|
162 |
Users of this dataset must comply with license of [CC-3M](https://github.com/google-research-datasets/conceptual-captions/blob/master/LICENSE) and [BLIP](https://github.com/salesforce/BLIP/blob/main/LICENSE.txt) (if you use their synthetic caption).
|
163 |
|
|
|
|
|
164 |
Creative Commons Attribution 4.0 International; and it should abide by the [policy of OpenAI](https://openai.com/policies/terms-of-use).
|
165 |
|
166 |
### Citation Information
|