xcodemind/vision2ui
收藏资源简介:
Vision2UI是一个从真实场景中提取的、包含丰富布局信息的数据集,专门用于微调多模态大语言模型(MLLMs)以生成UI代码。该数据集通过精心收集、清理和精炼开源Common Crawl数据集创建,确保了高质量。数据集包含超过三百万个并行样本,每个样本包括网页截图、布局信息、网页代码文本、截图比例、页面内容的主要语言、HTML和CSS代码的令牌计数、神经评分器生成的评分以及图像的哈希码。此外,数据集还引入了新的度量标准TreeBLEU来评估生成网页与源代码的结构相似性,并提出了基于Vision Transformer的基线模型UICoder。
Vision2UI is a dataset extracted from real-world scenarios and rich in layout information, specifically designed for fine-tuning multi-modal large language models (MLLMs) to generate UI code. It is constructed by carefully collecting, cleaning, and refining the open-source Common Crawl dataset to guarantee high data quality. The dataset contains over three million parallel samples, where each sample comprises webpage screenshots, layout information, webpage code text, screenshot aspect ratio, the primary language of the page content, token counts of HTML and CSS codes, scores generated by a neural scorer, and the image's hash code. Additionally, this dataset introduces a novel metric TreeBLEU for evaluating the structural similarity between generated webpages and their source codes, and proposes a Vision Transformer-based baseline model named UICoder.
数据集概述
数据集名称
- Vision2UI
数据集描述
- Vision2UI 是一个专为从用户界面(UI)设计图像自动生成网页代码而设计的数据集。该数据集通过精心处理开放源代码的Common Crawl数据集,包含超过三百万个平行样本,包括UI设计图像、网页代码和布局信息。
数据集特点
- 图像(image):网页截图。
- 边界框(bbox):网页元素的布局信息,包括大小、位置和层次信息。
- 文本(text):包含HTML/CSS代码的网页代码文本。
- 比例(scale):截图的尺寸,格式为[宽度, 高度]。
- 语言(lang):渲染页面上显示的主要文本内容的语言(不包括HTML/CSS代码),支持20种语言。
- 令牌(tokens):HTML和CSS代码的令牌计数,格式为[CSS长度, HTML长度]。
- 分数(score):由论文中提出的神经评分器获得的分数。
- 哈希(hash):图像对象的哈希代码。
数据集用途
- 用于微调多模态大型语言模型(MLLMs),以提高从UI设计图像自动生成网页代码的性能。
数据集配置
- 默认配置(config_name: default)
- 数据文件路径:
data/*.parquet - 数据分割:
train
- 数据文件路径:
许可证
- CC-BY-4.0
数据集链接
- 项目主页:Vision2UI




