metadata
pretty_name: Pattern Over Pixels Screenshot-to-Code
license: other
task_categories:
- image-to-text
- text-generation
tags:
- screenshot-to-code
- multimodal
- html
- css
- visual-grounding
size_categories:
- n<1K
configs:
- config_name: default
default: true
data_files:
- split: train
path: data/train-*.parquet
Pattern Over Pixels Screenshot-to-Code
This dataset contains controlled counterfactual screenshot-to-code examples built from 30 real-world webpages from Design2Code. Each example preserves a repeated UI pattern while introducing a single localized deviation, allowing researchers to test whether multimodal models follow the pixels or simply restore the dominant template.
Contents
- 720 perturbed HTML instances
- 360 structural-card examples
- 360 text-style examples
- 2 screenshot conditions per example:
standard_imagenoise_image
Layout
hf_release/
README.md
.gitattributes
data/
examples.jsonl
metadata/
dataset_info.json
validation_report.json
html/
cards/
texts/
images/
cards/
standard/
noise/
texts/
standard/
noise/
Row Schema
Each line in data/examples.jsonl is one perturbed HTML instance with both
image conditions attached. Important fields include:
example_idsource_idpattern_familypattern_nameattribute_namepositiontarget_valuebias_valuehtml_pathstandard_imagenoise_imagecode_snippet_linecode_snippet_context
Loading
Load the local release folder with:
from datasets import load_dataset, Image
ds = load_dataset("json", data_files="data/examples.jsonl", split="train")
ds = ds.cast_column("standard_image", Image())
ds = ds.cast_column("noise_image", Image())
After pushing to the Hub with scripts/push_hf_dataset.py, load it with:
from datasets import load_dataset
ds = load_dataset("AnonymousSubmissionASE/pixels_vs_code", split="train")
Notes
standard_imageandnoise_imageare relative paths inside the dataset repo.- The Hub push script materializes
html_contentand embeds image bytes into the Parquet shards so the hosted dataset is self-contained. - This release is organized for public hosting and loading, not for regeneration.
- The underlying webpages originate from real-world websites. Check original website licenses and terms before downstream redistribution or commercial use.