paper-with-me

Papers

Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approach

2024-06-24 · Yuxuan Wan, Chaozheng Wang, Yi Dong, Wenxuan Wang, Shuqing Li, Yintong Huo, Michael R. Lyu

Websites are critical in today's digital world, with over 1.11 billion currently active and approximately 252,000 new sites launched daily. Converting website layout design into functional UI code is a time-consuming yet indispensable step of website development. Manual methods of converting visual designs into functional code present significant challenges, especially for non-experts. To explore automatic design-to-code solutions, we first conduct a motivating study on GPT-4o and identify three types of issues in generating UI code: element omission, element distortion, and element misarrangement. We further reveal that a focus on smaller visual segments can help multimodal large language models (MLLMs) mitigate these failures in the generation process. In this paper, we propose DCGen, a divide-and-conquer-based approach to automate the translation of webpage design to UI code. DCGen starts by dividing screenshots into manageable segments, generating code for each segment, and then reassembling them into complete UI code for the entire screenshot. We conduct extensive testing with a dataset comprised of real-world websites and various MLLMs and demonstrate that DCGen achieves up to a 15% improvement in visual similarity and 8% in code similarity for large input images. Human evaluations show that DCGen can help developers implement webpages significantly faster and more similar to the UI designs. To the best of our knowledge, DCGen is the first segment-aware MLLM-based approach for generating UI code directly from screenshots.

📄 PDF Abstract BibTeX arXiv:2406.16386

Code (0)

등록된 구현이 없습니다.

Tasks

Layout Design

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

pix2code: Generating Code from a Graphical User Interface Screenshot

2017-05-22 · Tony Beltramelli

Transforming a graphical user interface screenshot created by a designer into computer code is a typical task conducted by a developer in order to build customized software, websites, and mobile applications. In this pap…

Class-level Code GenerationCode Generation

UDC: A Unified Neural Divide-and-Conquer Framework for Large-Scale Combinatorial Optimization Problems

2024-06-29 · Zhi Zheng, Changliang Zhou, Tong Xialiang, Mingxuan Yuan 외

Single-stage neural combinatorial optimization solvers have achieved near-optimal results on various small-scale combinatorial optimization (CO) problems without requiring expert knowledge. However, these solvers exhibit…

Combinatorial OptimizationGraph Neural Network

DC-Net: Divide-and-Conquer for Salient Object Detection

2023-05-24 · JiaYi Zhu, Xuebin Qin, Abdulmotaleb Elsaddik

In this paper, we introduce Divide-and-Conquer into the salient object detection (SOD) task to enable the model to learn prior knowledge that is for predicting the saliency map. We design a novel network, Divide-and-Conq…

DecoderObjectobject-detectionObject Detection+1

DivCon: Divide and Conquer for Progressive Text-to-Image Generation

2024-03-11 · Yuhao Jia, Wenhan Tan

Diffusion-driven text-to-image (T2I) generation has achieved remarkable advancements. To further improve T2I models' capability in numerical and spatial reasoning, the layout is employed as an intermedium to bridge large…

Image GenerationLayout-to-Image GenerationSpatial ReasoningText to Image Generation+1

Divide and Conquer: Accelerating Diffusion-Based Large Language Models via Adaptive Parallel Decoding

2026-02-27 · Xiangzhong Luo, Yilin An, Zhicheng Yu, Weichen Liu 외 arxiv

Diffusion-based large language models (dLLMs) have shown promising performance across various reasoning tasks, establishing themselves as an alternative to autoregressive large language models (LLMs). Unlike autoregressi…