arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.11556cs.CVcs.AIcs.CL
收藏

StarVector:从图像和文本生成可缩放矢量图形代码

StarVector: Generating Scalable Vector Graphics Code from Images and Text

ServiceNow Research(ServiceNow研究院);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);ÉTS, Montréal, Canada(蒙特利尔高等技术学院);UBC, Vancouver, Canada(英属哥伦比亚大学)

Juan A. Rodriguez, Abhay Puri, Shubham Agarwal, Issam H. Laradji, Pau Rodriguez, Sai Rajeswar, David Vazquez, Christopher Pal, Marco Pedersoli

AI总结:

本文提出StarVector多模态大语言模型,直接在SVG代码空间中利用视觉理解生成紧凑精确的矢量图形,并构建了2M样本数据集SVG-Stack和基准SVG-Bench,实现了最先进的性能。

摘要:

可缩放矢量图形(SVG)因其可缩放性和通用性,对现代图像渲染至关重要。以往的SVG生成方法侧重于基于曲线的矢量化,缺乏语义理解,常产生伪影,且难以处理路径曲线之外的SVG图元。为解决这些问题,我们引入了StarVector,一种用于SVG生成的多模态大语言模型。它通过理解图像语义并使用SVG图元来执行图像矢量化,以生成紧凑、精确的输出。与传统方法不同,StarVector直接在SVG代码空间中工作,利用视觉理解来应用准确的SVG图元。为训练StarVector,我们创建了SVG-Stack,一个包含2M样本的多样化数据集,使其能够泛化到各种矢量化任务,并精确使用椭圆、多边形和文本等图元。我们解决了SVG评估中的挑战,表明像MSE这样的基于像素的指标无法捕捉矢量图形的独特性质。我们引入了SVG-Bench,一个涵盖10个数据集和3个任务的基准:Image-to-SVG、Text-to-SVG生成和图表生成。使用此设置,StarVector实现了最先进的性能,生成了更紧凑且语义更丰富的SVG。

英文摘要:

Scalable Vector Graphics (SVGs) are vital for modern image rendering due to their scalability and versatility. Previous SVG generation methods have focused on curve-based vectorization, lacking semantic understanding, often producing artifacts, and struggling with SVG primitives beyond path curves. To address these issues, we introduce StarVector, a multimodal large language model for SVG generation. It performs image vectorization by understanding image semantics and using SVG primitives for compact, precise outputs. Unlike traditional methods, StarVector works directly in the SVG code space, leveraging visual understanding to apply accurate SVG primitives. To train StarVector, we create SVG-Stack, a diverse dataset of 2M samples that enables generalization across vectorization tasks and precise use of primitives like ellipses, polygons, and text. We address challenges in SVG evaluation, showing that pixel-based metrics like MSE fail to capture the unique qualities of vector graphics. We introduce SVG-Bench, a benchmark across 10 datasets, and 3 tasks: Image-to-SVG, Text-to-SVG generation, and diagram generation. Using this setup, StarVector achieves state-of-the-art performance, producing more compact and semantically rich SVGs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑