tikz-dataset
收藏资源简介:
该数据集是一个经过清洗和扩展的图像-TikZ代码对集合,专门用于训练和评估图像到TikZ转换模型。数据集整合并处理了来自DaTikZ-V4和GeoTikz-Base两个开源数据集的样本,同时使用DaTikZ仓库的脚本收集了额外样本以扩展数据规模。在数据清洗过程中,重点解决了原始数据中图像与代码内容不对齐的问题:通过编译TikZ和LaTeX源文件,移除了所有生成多页PDF的样本(因为存储的图像通常只包含第一页);针对GeoTikz-Base中因缺少必要LaTeX包或TikZ库而导致渲染错误的图形,使用更完整的LaTeX环境进行了重新渲染;同时清除了GeoTikz响应字段中的Markdown代码围栏,确保代码字段仅包含原始的LaTeX或TikZ源代码。数据集包含四个子集:datikz_v4(来自DaTikZ-V4的清洗后样本)、geotikz_bridge_base(来自GeoTikz-Base的清洗和重新渲染样本)、our_dataset_train(额外收集的训练样本)和our_dataset_benchmark(用于模型评估的保留样本)。每个样本包含四个字段:二进制格式的image_with_text、字符串格式的code_with_text、字符串格式的vlm_description以及表示数据来源的字符串字段source。数据集总大小约为241MB,下载大小约为214MB。该数据集适用于图像到TikZ模型训练、多模态微调和模型性能基准测试等任务。
This dataset is a cleaned and expanded collection of image-TikZ code pairs, specifically designed for training and evaluating image-to-TikZ conversion models. It integrates and processes samples from two open-source datasets, DaTikZ-V4 and GeoTikz-Base, while also collecting additional samples using scripts from the DaTikZ repository to expand the data scale. During the data cleaning process, key issues such as misalignment between images and code content in the original data were addressed: by compiling TikZ and LaTeX source files, all samples that generated multi-page PDFs were removed (as stored images typically only include the first page); for graphics in GeoTikz-Base that rendered incorrectly due to missing necessary LaTeX packages or TikZ libraries, re-rendering was performed using a more complete LaTeX environment; additionally, Markdown code fences in the GeoTikz response fields were cleared to ensure that the code fields contain only raw LaTeX or TikZ source code. The dataset includes four subsets: datikz_v4 (cleaned samples from DaTikZ-V4), geotikz_bridge_base (cleaned and re-rendered samples from GeoTikz-Base), our_dataset_train (additional training samples collected), and our_dataset_benchmark (reserved samples for model evaluation). Each sample contains four fields: binary image_with_text, string code_with_text, string vlm_description, and a string field source indicating the data origin. The total dataset size is approximately 241MB, with a download size of about 214MB. This dataset is suitable for tasks such as image-to-TikZ model training, multimodal fine-tuning, and model performance benchmarking.
数据集概述
该数据集是一个经过清洗和扩展的图像与 TikZ 代码配对集合,用于训练和评估图像到 TikZ 模型的性能。
数据来源
- DaTikZ-V4:从 DaTikZ-V4 数据集获取。
- GeoTikz-Base:从 GeoTikz-Base 数据集获取。
- 额外样本:使用 DaTikZ 创建者提供的脚本收集,脚本来源为 DaTikZ 仓库。
数据清洗
- 移除了生成多页 PDF 的样本,确保图像与目标代码内容一致。
- 对 GeoTikz-Base 中因缺少 LaTeX 包或 TikZ 库而渲染错误的图形,使用更完整的 LaTeX 环境重新渲染。
- 移除了 GeoTikz 响应字段中的 Markdown 代码围栏,使该字段仅包含原始的 LaTeX 或 TikZ 源代码。
数据集划分
- datikz_v4:来自 DaTikZ-V4 的清洗样本。
- geotikz_bridge_base:来自 GeoTikz-Base 的清洗和重新渲染样本。
- our_dataset_train:额外收集的训练样本。
- our_dataset_benchmark:用于模型评估的保留样本。
数据集特征
- image_with_text:二进制类型,存储图像和文本数据。
- code_with_text:字符串类型,存储代码和文本数据。
- vlm_description:字符串类型,存储视觉语言模型描述。
- source:字符串类型,标注数据来源。
数据集规模
- 下载大小:213,757,608 字节
- 数据集大小:241,053,589 字节
预期用途
- 图像到 TikZ 模型的训练
- 多模态微调
- 模型基准测试





