kyamagu commited on
Commit
bf58ec3
1 Parent(s): 316b569

initial commit

Browse files
Files changed (2) hide show
  1. LICENSE +35 -0
  2. README.md +300 -0
LICENSE ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Community Data License Agreement - Permissive - Version 2.0
2
+
3
+ This is the Community Data License Agreement - Permissive, Version 2.0 (the "agreement"). Data Provider(s) and Data Recipient(s) agree as follows:
4
+
5
+ 1. Provision of the Data
6
+
7
+ 1.1. A Data Recipient may use, modify, and share the Data made available by Data Provider(s) under this agreement if that Data Recipient follows the terms of this agreement.
8
+
9
+ 1.2. This agreement does not impose any restriction on a Data Recipient's use, modification, or sharing of any portions of the Data that are in the public domain or that may be used, modified, or shared under any other legal exception or limitation.
10
+
11
+ 2. Conditions for Sharing Data
12
+
13
+ 2.1. A Data Recipient may share Data, with or without modifications, so long as the Data Recipient makes available the text of this agreement with the shared Data.
14
+
15
+ 3. No Restrictions on Results
16
+
17
+ 3.1. This agreement does not impose any restriction or obligations with respect to the use, modification, or sharing of Results.
18
+
19
+ 4. No Warranty; Limitation of Liability
20
+
21
+ 4.1. All Data Recipients receive the Data subject to the following terms:
22
+
23
+ THE DATA IS PROVIDED ON AN "AS IS" BASIS, WITHOUT REPRESENTATIONS, WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
24
+
25
+ NO DATA PROVIDER SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE DATA OR RESULTS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
26
+
27
+ 5. Definitions
28
+
29
+ 5.1. "Data" means the material received by a Data Recipient under this agreement.
30
+
31
+ 5.2. "Data Provider" means any person who is the source of Data provided under this agreement and in reliance on a Data Recipient's agreement to its terms.
32
+
33
+ 5.3. "Data Recipient" means any person who receives Data directly or indirectly from a Data Provider and agrees to the terms of this agreement.
34
+
35
+ 5.4. "Results" means any outcome obtained by computational analysis of Data, including for example machine learning models and models' insights.
README.md ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language:
5
+ - en
6
+ language_creators:
7
+ - found
8
+ license:
9
+ - other
10
+ multilinguality:
11
+ - monolingual
12
+ pretty_name: crello
13
+ size_categories:
14
+ - 1K<n<10K
15
+ source_datasets:
16
+ - original
17
+ tags:
18
+ - graphic design
19
+ - design templates
20
+ task_categories:
21
+ - unconditional-image-generation
22
+ task_ids: []
23
+ ---
24
+
25
+ # Dataset Card for Crello
26
+
27
+ ## Table of Contents
28
+ - [Dataset Card for Crello](#dataset-card-for-crello)
29
+ - [Table of Contents](#table-of-contents)
30
+ - [Dataset Description](#dataset-description)
31
+ - [Dataset Summary](#dataset-summary)
32
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
33
+ - [Languages](#languages)
34
+ - [Dataset Structure](#dataset-structure)
35
+ - [Data Instances](#data-instances)
36
+ - [Data Fields](#data-fields)
37
+ - [Data Splits](#data-splits)
38
+ - [Dataset Creation](#dataset-creation)
39
+ - [Curation Rationale](#curation-rationale)
40
+ - [Source Data](#source-data)
41
+ - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
42
+ - [Who are the source language producers?](#who-are-the-source-language-producers)
43
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
44
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
45
+ - [Social Impact of Dataset](#social-impact-of-dataset)
46
+ - [Discussion of Biases](#discussion-of-biases)
47
+ - [Other Known Limitations](#other-known-limitations)
48
+ - [Additional Information](#additional-information)
49
+ - [Dataset Curators](#dataset-curators)
50
+ - [Licensing Information](#licensing-information)
51
+ - [Citation Information](#citation-information)
52
+ - [Contributions](#contributions)
53
+
54
+ ## Dataset Description
55
+
56
+ - **Homepage:** [CanvasVAE github](https://github.com/CyberAgentAILab/canvas-vae)
57
+ - **Repository:**
58
+ - **Paper:** [CanvasVAE: Learning to Generate Vector Graphic Documents](https://arxiv.org/abs/2108.01249)
59
+ - **Leaderboard:**
60
+ - **Point of Contact:** [Kota Yamaguchi](https://github.com/kyamagu)
61
+
62
+ ### Dataset Summary
63
+
64
+ The Crello dataset is compiled for the study of vector graphic documents. The dataset contains document meta-data such as canvas size and pre-rendered elements such as images or text boxes. The original templates was collected from [crello.com](https://crello.com) (now [create.vista.com](https://create.vista.com/)) and converted to low-resolution format suitable for machine learning analysis.
65
+
66
+ ### Supported Tasks and Leaderboards
67
+
68
+ [CanvasVAE](https://arxiv.org/abs/2108.01249) studies unsupervised document generation.
69
+
70
+ ### Languages
71
+
72
+ Almost all design templates use English.
73
+
74
+ ## Dataset Structure
75
+
76
+ ### Data Instances
77
+
78
+ Each instance has scalar attributes (canvas) and sequence attributes (elements). Categorical values are stored as integer values. Check `ClassLabel` features of the dataset for the list of categorical labels.
79
+
80
+ ```
81
+ {'id': '5bd1c85078e1194aa6186300',
82
+ 'length': 11,
83
+ 'group': 4,
84
+ 'format': 10,
85
+ 'canvas_width': 40,
86
+ 'canvas_height': 41,
87
+ 'category': 1,
88
+ 'type': [3, 3, 3, 3, 3, 3, 4, 1, 4, 4, 3],
89
+ 'left': [0.8712766170501709,
90
+ 0.42127659916877747,
91
+ 0.14468085765838623,
92
+ 0.8585106134414673,
93
+ 0.8819149136543274,
94
+ 0.043617021292448044,
95
+ 0.30696335434913635,
96
+ 0.0010638297535479069,
97
+ 0.7409376502037048,
98
+ 0.4813956916332245,
99
+ 0.30744680762290955],
100
+ 'top': [0.0,
101
+ 0.0,
102
+ 0.874365508556366,
103
+ 0.6967005133628845,
104
+ 0.6967005133628845,
105
+ 0.9060913920402527,
106
+ 0.8984156250953674,
107
+ 0.113832488656044,
108
+ 0.434346079826355,
109
+ 0.14983975887298584,
110
+ 0.05710659921169281],
111
+ 'width': [0.12989361584186554,
112
+ 0.2329787164926529,
113
+ 0.42127659916877747,
114
+ 0.0010638297535479069,
115
+ 0.0010638297535479069,
116
+ 0.20425531268119812,
117
+ 0.2213829755783081,
118
+ 0.5641489624977112,
119
+ 0.2148936241865158,
120
+ 0.2951063811779022,
121
+ 0.6446808576583862],
122
+ 'height': [1.0,
123
+ 0.5164974331855774,
124
+ 0.06598984450101852,
125
+ 0.24365481734275818,
126
+ 0.24365481734275818,
127
+ 0.0012690355069935322,
128
+ 0.026649747043848038,
129
+ 0.7272842526435852,
130
+ 0.2753807008266449,
131
+ 0.2842639684677124,
132
+ 0.7271573543548584],
133
+ 'opacity': [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
134
+ 'text': ['',
135
+ '',
136
+ '',
137
+ '',
138
+ '',
139
+ '',
140
+ 'Powerful Ways',
141
+ '',
142
+ '11',
143
+ 'Powerful Ways\nTo Take Care\nOf Your Skin\nIn Summer',
144
+ ''],
145
+ 'font': [0, 0, 0, 0, 0, 0, 24, 0, 24, 189, 0],
146
+ 'font_size': [0.0,
147
+ 0.0,
148
+ 0.0,
149
+ 0.0,
150
+ 0.0,
151
+ 0.0,
152
+ 21.504981994628906,
153
+ 0.0,
154
+ 217.0,
155
+ 43.18538284301758,
156
+ 0.0],
157
+ 'text_align': [0, 0, 0, 0, 0, 0, 2, 0, 2, 2, 0],
158
+ 'angle': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
159
+ 'color': [[236.0, 96.0, 104.0],
160
+ [236.0, 96.0, 104.0],
161
+ [29.0, 29.0, 27.0],
162
+ [29.0, 29.0, 27.0],
163
+ [29.0, 29.0, 27.0],
164
+ [29.0, 29.0, 27.0],
165
+ [0.0, 0.0, 1.0],
166
+ [228.0, 148.0, 151.0],
167
+ [0.0, 0.0, 1.0],
168
+ [0.0, 0.0, 1.0],
169
+ [29.0, 29.0, 27.0]],
170
+ 'image': [<PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
171
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
172
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
173
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
174
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
175
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
176
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
177
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
178
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
179
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>,
180
+ <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=256x256>]}
181
+ ```
182
+
183
+ ### Data Fields
184
+
185
+ **Context features (Canvas attributes)**
186
+
187
+ | Field | Type | Shape | Description |
188
+ | ------------- | ------ | ----- | -------------------------------------------------------------- |
189
+ | id | string | () | Template ID from crello.com |
190
+ | group | string | () | Broad design group, such as social media posts or blog headers |
191
+ | format | string | () | Detailed design format, such as Instagram post or postcard |
192
+ | category | string | () | Topic category of the design, such as holiday celebration |
193
+ | canvas_width | int64 | () | Canvas pixel width |
194
+ | canvas_height | int64 | () | Canvas pixel height |
195
+ | length | int64 | () | Length of sequence features |
196
+
197
+ **Sequence features (Element attributes)**
198
+
199
+ | Field | Type | Shape | Description |
200
+ | ----------- | ------- | ----- | -------------------------------------------------------------------- |
201
+ | type | string | () | Element type, such as vector shape, image, or text |
202
+ | left | float32 | () | Element left position normalized to [0, 1] range w.r.t. canvas_width |
203
+ | top | float32 | () | Element top position normalized to [0, 1] range w.r.t. canvas_height |
204
+ | width | float32 | () | Element width normalized to [0, 1] range w.r.t. canvas_width |
205
+ | height | float32 | () | Element height normalized to [0, 1] range w.r.t. canvas_height |
206
+ | color | int64 | (3,) | Extracted main RGB color of the element |
207
+ | opacity | float32 | () | Opacity in [0, 1] range |
208
+ | image_bytes | string | () | Pre-rendered 256x256 preview of the element encoded in PNG format |
209
+ | text | string | () | Text content in UTF-8 encoding for text element |
210
+ | font | string | () | Font family name for text element |
211
+ | font_size | float32 | () | Font size (height) in pixels |
212
+ | text_align | string | () | Horizontal text alignment, left, center, right for text element |
213
+ | angle | float32 | () | Element rotation angle (radian) w.r.t. the center of the element |
214
+
215
+ Note that the color and pre-rendered images are do not necessarily accurately
216
+ reproduce the original design templates.
217
+ The original template is accessible at the following URL if still available.
218
+
219
+ ```
220
+ https://create.vista.com/artboard/?template=<template_id>
221
+ ```
222
+
223
+ ### Data Splits
224
+
225
+ The Crello dataset has 3 splits: train, validation, and test. The current split is generated such that the same title of the original template shows up in only in one split.
226
+
227
+ | Split | Count |
228
+ | --------- | ----- |
229
+ | train | 18659 |
230
+ | validaton | 2391 |
231
+ | test | 2371 |
232
+
233
+
234
+ ## Dataset Creation
235
+
236
+ ### Curation Rationale
237
+
238
+ The Crello dataset is compiled for the general study of vector graphic documents, with the goal of producing a dataset that offers complete vector graphic information suitable for neural methodologies.
239
+
240
+ ### Source Data
241
+
242
+ #### Initial Data Collection and Normalization
243
+
244
+ The dataset is initially scraped from the former `crello.com`, and pre-processed to
245
+
246
+ #### Who are the source language producers?
247
+
248
+ While [create.vista.com](https://create.vista.com/)) owns those templates, the templates seems to be originially created by certain group of design studios.
249
+
250
+ ### Personal and Sensitive Information
251
+
252
+ The dataset does not contain any personal information about the creator, but may contain a picture of people in the design template.
253
+
254
+ ## Considerations for Using the Data
255
+
256
+ ### Social Impact of Dataset
257
+
258
+ This dataset was developed for advancing the general study of vector graphic documents, especially for generative systems of graphic design. Successful systems might enable automation of creative workflow that human designers get involved in.
259
+
260
+ ### Discussion of Biases
261
+
262
+ The templates contained in the dataset reflect the biases appearing in the source data, which could present gender biases in specific design categories.
263
+
264
+ ### Other Known Limitations
265
+
266
+ Due to the unknown data specification of the source data, the color and pre-rendered images do not necessarily accurately reproduce the original design templates. The original template is accessible at the following URL if still available.
267
+
268
+ https://create.vista.com/artboard/?template=<template_id>
269
+
270
+ ## Additional Information
271
+
272
+ ### Dataset Curators
273
+
274
+ The Crello dataset was developed by Kota Yamaguchi.
275
+
276
+ ### Licensing Information
277
+
278
+ The origin of the dataset is [create.vista.com](https://create.vista.com) (formally, `crello.com`).
279
+ The distributor ("We") do not own the copyrights of the original design templates.
280
+ By using Crello dataset, the user of this dataset ("You") must agree to the
281
+ [VistaCreate License Agreements](https://create.vista.com/faq/legal/licensing/license_agreements/).
282
+
283
+ The dataset is distributed under [CDLA-Permissive-2.0 license](https://cdla.dev/permissive-2-0/).
284
+
285
+ **Note**
286
+
287
+ We do not re-distribute the original files as we are not allowed by terms.
288
+
289
+ ### Citation Information
290
+
291
+ @article{yamaguchi2021canvasvae,
292
+ title={CanvasVAE: Learning to Generate Vector Graphic Documents},
293
+ author={Yamaguchi, Kota},
294
+ journal={ICCV},
295
+ year={2021}
296
+ }
297
+
298
+ ### Contributions
299
+
300
+ Thanks to [@kyamagu](https://github.com/kyamagu) for adding this dataset.