DeepSVG
DeepSVG, a hierarchical Transformer that generates and interpolates SVG icons as draw commands.
Diffusion and generative · 736 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 10.3M
- Operations
- 736
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2020
- Cited by
- 98 (as of 16 November 2026)
- Authors
- Alexandre Carlier, Martin Danelljan, Alexandre Alahi, Radu Timofte
- Source
- GitHub: alexandre01/deepsvg
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m16006
- Graph hash
- 776699483a5fd35ad8ff6a1a725ad829579bbc5ddfd63f0b3e4d3e062f5701a7
- Skeleton hash
- 293716895156c0b2a826d53083ba1687700547490ff231bd0f9639715da65463
- Architecture hash
- d7ab9932c06c88704a0daeead61f96f24477df1a8dfce88221e024807555d915
- Diagram SHA-256
- aced42aa4a71781322d6e9a0e9a89a868f48a9be22492cff8b895590ffc6554a
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
DeepSVG is a generative model for vector graphics that works by predicting draw commands, such as lines and Bézier curves. The paper proposes it for generating and interpolating complex SVG icons. Its latent space also supports animation between icons.
The network is hierarchical, and both its encoders and its decoders are Transformer-based. An SVG image is treated as a set of paths, each path being a sequence of commands. The encoder first encodes every shape separately and then produces a latent vector from the relations between the encoded shapes, so the order of the shapes does not matter. The decoder mirrors this in two stages, first predicting a set of shape representations with their attributes. The draw commands are then decoded in a single forward pass (non-autoregressively) instead of one command at a time. Input coordinates are quantized to 8 bits before they are embedded.
The paper describes the network as a variational auto-encoder (VAE), consisting of an encoder and a decoder network. Its Transformer blocks use 4 layers with a feed-forward dimension of 512. Alongside the model, the authors introduce the SVG-Icons8 dataset of 100,000 icons in 56 different categories. In their human study of interpolations, the hierarchical architecture with ordered assignment gave superior results.
Key idea. DeepSVG is a hierarchical Transformer-based generative model that encodes an SVG icon shape by shape and predicts its draw commands in a single forward pass.
- deepsvg
- svg generation
- vector graphics generation
- svg icons
- svg interpolation
- vector graphics animation
- hierarchical generative network
- svg-icons8
- font generation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{carlier2020deepsvghierarchicalgenerativenetwork,
title={DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation},
author={Alexandre Carlier and Martin Danelljan and Alexandre Alahi and Radu Timofte},
year={2020},
eprint={2007.11301},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2007.11301},
}