Datasets:
init commit
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- README.md +28 -0
- data/00002.parquet +3 -0
- data/00003.parquet +3 -0
- data/00004.parquet +3 -0
- data/00005.parquet +3 -0
- data/00006.parquet +3 -0
- data/00007.parquet +3 -0
- data/00008.parquet +3 -0
- data/00009.parquet +3 -0
- data/00010.parquet +3 -0
- data/00011.parquet +3 -0
- data/00012.parquet +3 -0
- data/00013.parquet +3 -0
- data/00014.parquet +3 -0
- data/00015.parquet +3 -0
- data/00016.parquet +3 -0
- data/00017.parquet +3 -0
- data/00018.parquet +3 -0
- data/00019.parquet +3 -0
- data/00020.parquet +3 -0
- data/00021.parquet +3 -0
- data/00022.parquet +3 -0
- data/00023.parquet +3 -0
- data/00024.parquet +3 -0
- data/00025.parquet +3 -0
- data/00026.parquet +3 -0
- data/00027.parquet +3 -0
- data/00028.parquet +3 -0
- data/00029.parquet +3 -0
- data/00030.parquet +3 -0
- data/00031.parquet +3 -0
- data/00032.parquet +3 -0
- data/00033.parquet +3 -0
- data/00034.parquet +3 -0
- data/00035.parquet +3 -0
- data/00036.parquet +3 -0
- data/00037.parquet +3 -0
- data/00038.parquet +3 -0
- data/00039.parquet +3 -0
- data/00040.parquet +3 -0
- data/00041.parquet +3 -0
- data/00042.parquet +3 -0
- data/00043.parquet +3 -0
- data/00044.parquet +3 -0
- data/00045.parquet +3 -0
- data/00046.parquet +3 -0
- data/00047.parquet +3 -0
- data/00048.parquet +3 -0
- data/00049.parquet +3 -0
- data/00050.parquet +3 -0
README.md
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-4.0
|
3 |
+
size_categories:
|
4 |
+
- n>100K
|
5 |
+
task_categories:
|
6 |
+
- image-to-text
|
7 |
+
pretty_name: vision2ui_purified
|
8 |
+
configs:
|
9 |
+
- config_name: default
|
10 |
+
data_files:
|
11 |
+
- split: train
|
12 |
+
path: data/*.parquet
|
13 |
+
tags:
|
14 |
+
- code
|
15 |
+
---
|
16 |
+
Vision2UI: A Real-World Dataset for Code Generation from UI Designs with Layouts
|
17 |
+
> Automatically generating webpage code from User Interface (UI) design images can significantly reduce the workload of front-end developers, and Multimodal Large Language Models (MLLMs) have demonstrated promising potential in this area. However, our investigation reveals that existing MLLMs are limited by the lack of authentic, high-quality, and large-scale datasets, leading to suboptimal performance in automated UI code generation. To mitigate this gap, we introduce a novel dataset, Vision2UI, derived from real-world scenarios and enriched with comprehensive layout information, specifically designed to finetune MLLMs for UI code generation. This dataset is created through a meticulous process involving the collection, cleaning, and refining of the open-source Common Crawl dataset. To ensure high quality, a neural scorer trained on manually annotated samples is employed to refine the data, retaining only the highest-quality instances. As a result, we obtain a high-quality dataset comprising over three million parallel samples that include UI design images, webpage code, and layout information. To validate the effectiveness of our proposed dataset, we establish a benchmark and introduce a baseline model based on the Vision Transformer (ViT), named UICoder. Additionally, we introduce a new metric, TreeBLEU, designed to evaluate the structural similarity between generated webpages and their corresponding ground truth in source code. Experimental results demonstrate that our dataset significantly improves the capability of MLLMs in learning code generation from UI design images.
|
18 |
+
|
19 |
+
|
20 |
+
Features:
|
21 |
+
- `image`: the screenshot of the webpage.
|
22 |
+
- `bbox`: the layout information, i.e., the bounding boxes (Bbox) of all the elements in the webpage, which contains the size, position, and hierarchy information.
|
23 |
+
- `text`: the webpage code text including HTML/CSS code.
|
24 |
+
- `scale`: the scale of the screenshot, in the format [width, height].
|
25 |
+
- `lang`: the main language of the text content displayed on the rendered page (excluding HTML/CSS code). It is generated by a widely-applied [model](https://huggingface.co/papluca/xlm-roberta-base-language-detection) on HuggingFace, which achieved very high accuracy on its evaluation set. Currently, it supports the following 20 languages: arabic (ar), bulgarian (bg), german (de), modern greek (el), english (en), spanish (es), french (fr), hindi (hi), italian (it), japanese (ja), dutch (nl), polish (pl), portuguese (pt), russian (ru), swahili (sw), thai (th), turkish (tr), urdu (ur), vietnamese (vi), and chinese (zh).
|
26 |
+
- `tokens`: the count of tokens of HTML and CSS code, in the format of [CSS length, HTML length]. The tokens are generated by [GPT-2 tokenizer](https://huggingface.co/openai-community/gpt2).
|
27 |
+
- `score`: the score is obtained by the neural scorer proposed in the paper.
|
28 |
+
- `hash`: the hash code of the image object.
|
data/00002.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc30e5be9bd9d01efdce4dac44c22ea31e7dbd42715fa1e396c510d7cb233bdb
|
3 |
+
size 502884643
|
data/00003.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e02899d57d6f2867cb8ade1c471f66a04ee17048d741719e7e089a754438e98f
|
3 |
+
size 533862365
|
data/00004.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca48ac535074c6327c167830f75d89df383863f682e6b976d420edb717c55c7a
|
3 |
+
size 521171393
|
data/00005.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:711774ab314459652f7bae7c0748578d94a073a29b9bd95346ec787c8ba10c6a
|
3 |
+
size 507930540
|
data/00006.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:91ab5d3570fb2ff39c3d2b8c888997d6226b4569c4d116cc3286cd9072dec371
|
3 |
+
size 503372893
|
data/00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:efcd50b83a05cb2b98b655877bea87759b847e3e2af82b3b3fb78b49e11140a7
|
3 |
+
size 499153034
|
data/00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b0f5c60e847225384e545c4454edf6a1becb87b071643f797a14dcf85671c2b3
|
3 |
+
size 518707439
|
data/00009.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d2ece8fef6d1ec1140dd0334bb253e226fbff28c7e91c5ab9a2e35d3d5fbf02
|
3 |
+
size 501561037
|
data/00010.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1fe402dce4f17a18686c043770521afd3440c4f61e8f48f22b45aa6d7386a957
|
3 |
+
size 508551437
|
data/00011.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9cf1c59a27c34c7050a49f30555d6824b9d9b4a07038b50fbad41aea3b3e325
|
3 |
+
size 521865933
|
data/00012.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:134b32731177393f86fa8acf1897b97d0e7af0e09a2cbb1656b1523ca9d59d97
|
3 |
+
size 499526854
|
data/00013.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7884c3b476b3774977b37e7e27c5227d84dcd10db9033cb5420f95b43945e8ac
|
3 |
+
size 519395103
|
data/00014.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d62b99d45c6fa660a9abe93cb4b4db314e7072ceca03dd4fb65a7698ab5ecffb
|
3 |
+
size 541648834
|
data/00015.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0a477d9a2d5929fbdeda25674c6ed105e1c57f1eb32b5dc8b3eb2decb6d174b0
|
3 |
+
size 517417159
|
data/00016.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc1e1c23ebc9cba971e78f54ae2a8070f94bcd471963576ceeeb78bcf519ac1e
|
3 |
+
size 503125479
|
data/00017.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3bb6efbda65ff55d8293c54628c0c83246be37a4b0180d929babd5221211d1f6
|
3 |
+
size 512337480
|
data/00018.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:504f28ebe32a7290347823425ae600bc3ed1b5b787511137b49a6065981fe273
|
3 |
+
size 529441418
|
data/00019.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60266ae4d551fcb64cedcd9c4e59e1ab8c53c99287babd6fd3a4eb3103325a24
|
3 |
+
size 507045834
|
data/00020.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60317bc9e80af4fa43212dd37589d6a66bd316cbcd7a1e4e1efc29b7de61d035
|
3 |
+
size 509089027
|
data/00021.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b71d2e563884c50720ec89db3a033cdde8bf490c603e7b9e7df2c3bcf12d961d
|
3 |
+
size 498047274
|
data/00022.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c709ac73982dfb7aa3ba5ab8e5f32025bb1925bdc47ab75d3bf285347ce40b2
|
3 |
+
size 530826663
|
data/00023.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42b1383d45e717bba77cf8a7ccbe3d295e250e0c960347cf62ebcc6e5b043b18
|
3 |
+
size 510829396
|
data/00024.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f71148407963c0f85c4f16089894ebb915d43757b9614a8a121d22c79f7e0871
|
3 |
+
size 530173752
|
data/00025.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c7559ee307260d7ad62f3cf60349722f68d6f97be51fb84e63fbc19af13fa00
|
3 |
+
size 536901651
|
data/00026.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:035f4db01fee0b398773539684780eb498f51b656f6bb58ba9015bc43c0f7459
|
3 |
+
size 515116687
|
data/00027.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf1bee6217d3771059b2fbd682cba7869ee3e07469dcdb7f5aebbcb438bc301f
|
3 |
+
size 502314310
|
data/00028.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8b461839305ad36bee87af3ad29afa6668b83bfddbd470c35d4b0f562357f17
|
3 |
+
size 504575782
|
data/00029.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1320ff14d7cb0c5a49bedd024b08d71b8f3912c982cc64acc5b8695dcba7f7a
|
3 |
+
size 510222278
|
data/00030.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e324a615317be251f69cda48f7bf9c48e9c44ec537974f489b4b8562b81dee7
|
3 |
+
size 511211371
|
data/00031.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5baa1160d67bf7dc703e6e91796a3177850472e89236c58e12d3be4bd5e87c16
|
3 |
+
size 518856614
|
data/00032.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d717dde0091aff2344593029835427ad3acd8e1f51ae68704800d7efde8a76d
|
3 |
+
size 517756257
|
data/00033.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c29839da391d45751ac253ecfd0d3c70a69314e04fc3e1d777bc441d8e9a9ea
|
3 |
+
size 515671639
|
data/00034.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2edd29ef82150980db6512a9d1505cc7c76cbaf09c98a2d5c2114eb5194b246e
|
3 |
+
size 523257084
|
data/00035.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d3d702308e16ba16e635fdb8070f0e50004e9c4e1f1352378e1581821ec5c058
|
3 |
+
size 565780754
|
data/00036.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d85b5f10324f2301797a7c52863b3b05a1f6323a105a7805e2cae320bf8406ad
|
3 |
+
size 566430103
|
data/00037.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec3037efce436b28681bc5f95aa38ce9e08f9d5abb57f0e5ac96dba65657b1b5
|
3 |
+
size 549764366
|
data/00038.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94fe78c5896c85c87fd2824fa543ada30bfe1ea34d4a0d1a6304e6c6cc62d3f6
|
3 |
+
size 566338405
|
data/00039.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:624c84bdb34b05311cc652b12231e9cabe7d8143e3baa77274f11ab5f88cfe98
|
3 |
+
size 542787052
|
data/00040.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe84c3930588a6fc3701ea8e83b70770f965450833dd90fe7fa2c25888a8f3af
|
3 |
+
size 555850016
|
data/00041.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:911927b36bb331447cbb0a212688895258c9044f82340e5c4db4da7e142f7a38
|
3 |
+
size 526105773
|
data/00042.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47ed9c3dff9e6ead73fba6cf235ab052e5a813ae7b68ef55fbfae6d924d2080d
|
3 |
+
size 531125350
|
data/00043.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7867652bd9f6d88593d6fdccedc481290e503e75ab5ca9643c45d8712a961eab
|
3 |
+
size 552925569
|
data/00044.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81bc2ac9d5b84f4719a4dcdc11038352339db7554ebeae9f2c71d9c8a0226204
|
3 |
+
size 559325712
|
data/00045.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:79df86c145fcb6f1cc71b4e522d52cbf7be3615fbcdd2d1a26b125e1e7619869
|
3 |
+
size 533377380
|
data/00046.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:038b082c574896b126a72c55679f43d042124ced8c453eb764781382b4c7ab61
|
3 |
+
size 545266676
|
data/00047.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc95380908f82afafcf16b0154c53ac3833662c8ddc509b54958ff1794d3ddde
|
3 |
+
size 562081369
|
data/00048.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83962b63fdc8291562d202a345a8d045a71f5b83b3652e6e90ddd78ed5827243
|
3 |
+
size 584851138
|
data/00049.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0bc98da05a8b373c75525d9e725b9bc47b3b2b807cd38c3e737c14ab1bb25b84
|
3 |
+
size 565901080
|
data/00050.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d3debd107a18efd4b8d78f97539c73dfafdac035a2009f97b4a5a6810838e7e
|
3 |
+
size 574339505
|