Color is a critical design factor for web pages, affecting important factors such as viewer emotions and the overall trust and satisfaction of a website. Effective coloring requires design knowledge and expertise, but if this process could be automated through data-driven modeling, efficient exploration and alternative workflows would be possible. However, this direction remains underexplored due to the lack of a formalization of the web page colorization problem, datasets, and evaluation protocols. In this work, we propose a new dataset consisting of e-commerce mobile web pages in a tractable format, which are created by simplifying the pages and extracting canonical color styles with a common web browser. The web page colorization problem is then formalized as a task of estimating plausible color styles for a given web page content with a given hierarchical structure of the elements. We present several Transformer-based methods that are adapted to this task by prepending structural message passing to capture hierarchical relationships between elements. Experimental results, including a quantitative evaluation designed for this task, demonstrate the advantages of our methods over statistical and image colorization methods. The code is available at https://github.com/CyberAgentAILab/webcolor.
翻译:彩色是网页的一个重要设计因素,它影响到观众情绪和网站的总体信任度和满意度等重要因素。有效的彩色需要设计知识和专门知识,但如果这一过程可以通过数据驱动的建模、高效的探索和替代工作流程而自动化,则有可能实现。然而,由于缺乏对网页彩色化问题、数据集和评价协议的正规化,这一方向仍未得到充分探讨。在这项工作中,我们提议一个新的数据集,由电子商务移动网页组成,采用可移植格式,通过简化网页和用共同的网络浏览器提取金色风格来创建。然后,将网页的彩色化问题正式化,作为一项任务,即根据元素的某个等级结构结构结构来估计某一网页内容的貌似颜色样式。我们介绍了一些基于变异器的方法,这些方法通过预先决定结构信息传递来捕捉元素之间的等级关系。实验结果,包括为此任务设计的定量评价,展示了我们方法在统计和图像彩色化方法方面的优势。该代码可在 https://giuthub.com/CyberAgrial/web。