Baidu open-sources a model that redraws raster into SVG
Baidu has open-sourced Unlimited-SVG — a multimodal model that takes a raster image and redraws it into structured SVG suitable for editing in a vector editor. The key point for practitioners: the model is designed to run on your own graphics card, and vectorizing a complex image can be done without paying for a cloud service or a large language model via API.
The model was introduced on December 1, 2026. The counter on Hugging Face shows 5,610 downloads over the past month. There are already 11 fine-tuned and 25 quantized versions based on it, and the model itself is used in 13 Hugging Face Spaces. On the project page it is marked with the MIT license.
Why vectorizing a complex image used to be expensive
The developers describe the problem this way: a complete SVG for a complex image often takes more than 10,000 tokens. At such lengths, large models become slow and expensive to use. According to the authors, until now such a conversion had to rely on heavyweight cloud models.
Unlimited-SVG is built on DeepSeek-OCR and saves resources at both stages of its work:
- On input, the DeepEncoder compresses a 2048 × 2048 image down to just 1,024 visual tokens. At the same time, according to the authors, small text, thin strokes and precise object coordinates are preserved. For icons, diagrams and type-based logos this matters: it is on thin lines and labels that vectorization usually goes wrong.
- On output, a mixture-of-experts architecture is at work: out of roughly 3 billion model parameters, about 0.5 billion are engaged per token. The weights in BF16 format take up about 6.7 GB.
As a result, the model, as the authors claim, keeps generation in real time even past 10,000 tokens. A launch example from the documentation allows it to output up to 30,000 tokens per drawing.
“…makes long, complex SVG conversion practical on a compact model that can be deployed locally, rather than relying on heavyweight frontier APIs like GPT-6.2 Astra and Claude Fable 5.2”.
That is how the Unlimited-SVG authors from Baidu frame the project's goal in the model description.
The model handles a drawing and a photograph differently
In the launch examples the model works deterministically by default: the same picture yields the same SVG. The authors advise changing the sampling temperature — that is, the degree of randomness — depending on the source material:
- for CAD drawings, diagrams, graphs and anything where precise geometry and text matter — keep it low, 0–0.3;
- for photographs and natural scenes — raise it to 0.5–0.8 to avoid repetitive loops and get more varied strokes.
It follows from this recommendation that on photographs the model is prone to looping, and the authors offer a workaround. Diagrams, infographics and logos are apparently its natural material, whereas a photorealistic shot will require tuning the settings.
Image preparation is described too: the long side is brought to 2,048 pixels, the picture is placed in the center of a gray square canvas without being split into fragments, and transparent areas are filled with white so they do not turn black.
Where to get it and what you need to run it
The weights can be downloaded from the Unlimited-SVG page on Hugging Face. The model is also available on ModelScope, and the code for running it is published in the repository on GitHub. The model can be tried without installation in the demo on Hugging Face Spaces, prepared by AK and Hugging Face.
The official instructions target x86-64 Linux with an NVIDIA graphics card supporting the BF16 format. Running it is described via Transformers and vLLM. There are no separate instructions for Mac or ComfyUI in the official materials. The authors also do not give exact video memory requirements or the processing time for a single drawing.
How this differs from tracing and cloud services
Today an artist who needs vector from raster essentially has two paths. The first is classic tracing such as VTracer and potrace, available in ComfyUI through the ComfyUI-ToSVG node set. It works locally and for free, but the result depends on manual tuning: suppressing speckle noise, color accuracy, gradient step, corner threshold. A tracer, as a rule, breaks the picture into color areas and does not take into account what is depicted in it.
The second path is cloud generative services. Quiver with the Arrow 1.1 and Arrow 1.1 Max models and Ideogram Vector 1 are built into ComfyUI as partner nodes and can turn images into editable SVG. For Ideogram the documentation states directly: this is a cloud API, the models are not downloaded, a Comfy account with credits is required, and the result opens in Illustrator, Figma or Inkscape.
Unlimited-SVG occupies a place between them: a neural network approach, as in cloud services, but on your own hardware and without paying per image. For a studio that needs to vectorize hundreds of diagrams, icons or archival logos, this probably changes the economics of the task: the main costs are the graphics card and the time to set up the environment, with no credits deducted per file. Besides, the source files do not go off to someone else's servers.
So far there are more open questions than answers. The authors do not show how neatly layers and shapes are grouped in the resulting SVG, or whether such a file is more convenient to edit than the result of ordinary tracing. That remains for illustrators and motion designers to check. Official support is limited to Linux and NVIDIA; quantized versions of the model exist, but whether they work on a Mac is not stated in the official materials.