SVGFusion: Scalable Text-to-SVG Generation via Vector Space Diffusion

Ximing Xing, Juncheng Hu, Jing Zhang, Dong Xu, Qian Yu
12/11/2024
cs.CVcs.GRcs.LG

No official code found. Best implementation: ximinng/SVGFusion (72 stars, MIT, last commit 2024-12-13). 1 more below.

Abstract

In this work, we introduce SVGFusion, a Text-to-SVG model capable of scaling to real-world SVG data without relying on text-based discrete language models or prolonged Score Distillation Sampling (SDS) optimization. The core idea of SVGFusion is to utilize a popular Text-to-Image framework to learn a continuous latent space for vector graphics. Specifically, SVGFusion comprises two key modules: a Vector-Pixel Fusion Variational Autoencoder (VP-VAE) and a Vector Space Diffusion Transformer (VS-DiT). The VP-VAE processes both SVG codes and their corresponding rasterizations to learn a continuous latent space, while the VS-DiT generates latent codes within this space based on the input text prompt. Building on the VP-VAE, we propose a novel rendering sequence modeling strategy which enables the learned latent space to capture the inherent creation logic of SVGs. This allows the model to generate SVGs with higher visual quality and more logical construction, while systematically avoiding occlusion in complex graphic compositions. Additionally, the scalability of SVGFusion can be continuously enhanced by adding more VS-DiT blocks. To effectively train and evaluate SVGFusion, we construct SVGX-Dataset, a large-scale, high-quality SVG dataset that addresses the scarcity of high-quality vector data. Extensive experiments demonstrate the superiority of SVGFusion over existing SVG generation methods, establishing a new framework for SVG content creation. Code, model, and data will be released at: https://ximinng.github.io/SVGFusionProject/

View on arXivView PDF

Code Implementations(2)

ximinng/SVGFusionCommunity59%
MIT

Official implementation for "SVGFusion: Scalable Text-to-SVG Generation via Vector Space Diffusion" https://arxiv.org/abs/2412.10437

721Dec 13, 20241 years agoMIT
svg-generationsvgfusiontext-to-svg
MIT

Official implementation for "SVGFusion: Scalable Text-to-SVG Generation via Vector Space Diffusion " https://arxiv.org/abs/2412.10437

20CSS, HTMLDec 11, 20241 years agoMIT
svgsvg-generationsvgfusiontext-to-svg

Similar Papers

Cite this paper

@article{xing2024svgfusion,
  title  = {SVGFusion: Scalable Text-to-SVG Generation via Vector Space Diffusion},
  author = {Ximing Xing and Juncheng Hu and Jing Zhang and Dong Xu and Qian Yu},
  year   = {2024},
  eprint = {2412.10437},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.10437v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.10437.svg)](https://codeofpaper.com/paper/2412.10437)

Discussion