Baidu Releases Unlimited-SVG, an AI Model That Redraws Images as Editable SVGs
On December 1, 2026, Baidu announced the release of Unlimited-SVG, an AI model that redraws images as editable SVGs.
Baidu's ERNIE multimodal team developed the model.
SVG represents shapes, coordinates, and colors in code. It can also describe text and lines and group multiple shapes together.
On the project page, the team says the model separates foreground from background and estimates parts hidden by other shapes as it redraws an image. The page shows the original images alongside the rendered SVG output and its code.
OrcaRouter analyzed a public streetscape example with buildings and vehicle light trails and reported that it contained named groups such as car, streetLight, and background. It found no image elements embedding raster images, and said the visible elements were vector shapes defined by geometry and coordinates.
If the shapes that make up a car are grouped together, an editor can change its color while leaving the buildings and road alone. Reproducing the image is valuable, and so is being able to choose what to edit. What the model treats as one object affects how easy the result is to edit, making its grouping worth testing across a range of images.
Reading images and generating long stretches of code
Baidu says fully describing a complex image as SVG often takes more than 10,000 tokens, the units an AI model uses to process text.
Unlimited-SVG is built on DeepSeek-OCR. In the official inference example, transparent images are composited onto a white background, and images are resized to 2,048 pixels on their longest side while preserving the aspect ratio. The image is fitted into a gray 2,048 × 2,048-pixel canvas and processed whole.
The DeepEncoder compresses the full image into 1,024 visual tokens. The developers say it is designed to compress the information while preserving small text, thin lines, and precise spatial relationships.
The output side uses a mixture of experts (MoE), which selects among specialized networks. The model reduces the number of image tokens and limits which networks perform the computation for each generated SVG token. The design reduces work on both sides of a task that can require generating long stretches of code.
Active parameters and total model size
The developers report about 500 million active parameters per token. According to the model configuration, the language model has 12 layers, and the MoE layers have 64 routed experts and two shared experts. Six routed experts are selected for each token.
Hugging Face's model metadata lists about 3.336 billion total parameters. The published BF16, or 16-bit floating-point, weights file is about 6.67 GB.
The official Transformers example loads the model in BF16 and moves it to the GPU. Even though the model limits the parameters used to generate each token, it still needs enough memory to hold all the model weights.
Generation also uses memory for components such as the KV cache, which reuses past computations. Estimates of GPU memory, or VRAM, for generating long SVGs need to account for this working memory as well as the weights.
Unlimited-SVG: Converting images to editable SVG
| Item | Specifications | Scope or condition |
|---|---|---|
| Input image | 2048×2048px | Aspect ratio preservedNo tiling |
| Image compression | 1,024 | visual tokens |
| Output tokens | Can exceed 10,000 | Complex images |
| Language model | 12 layers | Includes MoE layers |
| Expertnetworks | 64 routed experts2 shared experts | MoE layers |
| Experts selected | 6 routed experts | per token |
| Activeparameters | About 500 million (reported) | per token |
| Total parameters | About 3.336 billion | Entire model |
| Weights file | About 6.67 GB | BF16 format |
| GPU memory | All weights plusworking memory | TransformersInference example |
Requirements for running locally
The official instructions assume x86-64 Linux and an NVIDIA GPU that supports BF16. They include examples for Hugging Face Transformers and vLLM. The vLLM example also involves changing a setting in an image-processing library file.
Baidu recommends different generation settings for different kinds of images, using temperature to control how much the output varies.
Unlimited-SVG generation settings (temperature) and checks
| Item | Technical drawings and charts | Natural scenes and photos |
|---|---|---|
| Recommended range | 0〜0.3 | 0.5〜0.8 |
| Goal | Accurate shapesand text | Reduce repetitive output |
| After conversion:What to check | Compare numbers and shapeswith the original | Check visual fidelityand editing effort |
It recommends 0–0.3 for images such as CAD drawings and charts, where shapes and text need to be precise. For natural scenes and photographs, it recommends 0.5–0.8 to keep similar descriptions from repeating in the output.
Line placement and numbers matter in charts. Photos need fine shapes and variations in color. The priorities for redrawing an image as SVG depend on what the image contains.
The official example extracts the SVG from the generated output and uses an XML parser to check the tag syntax before saving. Even if the output passes that check, it still takes a separate review to determine whether the original drawing's values and shapes were reproduced accurately.
How to evaluate fidelity
Baidu says the model can generate SVGs longer than 10,000 tokens in real time. As of December 1 in China, the README and project page gave no specific GPU model, generation speed in tokens per second, or results comparing models under the same conditions. The team said a technical report would follow.
When converting a chart or technical drawing, a close visual match does not establish that the original numbers or design information have been recovered. The model also estimates hidden parts when redrawing, so checking the output against the source is essential where accuracy matters.
For editing illustrations or photographs, the work needed to edit the result matters alongside visual fidelity. Even a fast conversion can cost time afterward if changing a car's color means hunting through many separate shapes. How well the SVG groups related elements affects its usefulness.
The model weights are available under the MIT license, and the inference repository also lists an MIT license. The model is distributed on ModelScope as well. Being able to run it locally and check the output on your own images is an advantage when evaluating it.
An AI model can describe a streetscape in words or redraw it in shapes. Named groups in the generated code reveal how the model divided the scene into cars and buildings and chose shapes and colors for each. Part of the appeal is being able to examine what it understood through both the redrawn image and the editable code.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
