Baidu’s Wenxin multimodal team has released Unlimited SVG, an open-source model that redraws a raster image as editable SVG code. The model can run locally, giving designers and researchers a way to rework a flattened illustration without uploading it to a cloud service. The code is on GitHub, and the model is on Hugging Face.
A mountain landscape illustrates what changes in the conversion. At 32× magnification, the original image broke into visible pixels, while the ridgelines and the edge of the sun stayed smooth in the SVG. That is because the SVG describes how to draw the shapes rather than storing a fixed grid of pixels. A designer can also select the sun and change its color without regenerating the sky or mountains.
In one test, Unlimited SVG redrew the Transformer architecture diagram from Attention Is All You Need, turning elements of the flattened figure into pieces that could be moved separately. In another, the reviewer compared enlarged portions of a mechanical engineering drawing with the model’s output and found no obvious discrepancies in the fine lines, labels or geometry. That was a visual comparison, not a dimensional accuracy test; the output was an SVG, not a recovered CAD file.
How the model redraws an image
According to the team’s technical report, Unlimited SVG adapts an approach used in DeepSeek-OCR. Its DeepEncoder component compresses a 2,048 × 2,048 image into 1,024 visual tokens. Instead of transcribing text, the model then writes SVG code one token at a time. Its mixture-of-experts architecture activates about 500 million parameters per output token, a figure that describes the active portion rather than the total model size. Baidu says the model can sustain real-time generation even when the SVG exceeds 10,000 tokens.
The team calls its approach to arranging shapes and layers “explicit visual logic.” In one demonstration, moving a person in the generated SVG revealed a continuous stretch of grass behind them. Rather than tracing only the visible outline of the grass, the model had drawn a background and placed the person on top. The hidden area was a reconstruction, but the layering made the result easier to edit.
For the team, redrawing also offers a way to examine what a model has understood. A caption can identify objects without specifying their positions or sizes. SVG code has to make those choices explicit, and researchers can render it and compare the result with the input to see what shifted or went missing. Whether that task improves broader visual understanding remains an open question.