AI AI Pulse

Baidu open-sources a 0.5B model that redraws images as SVG

AI News Source: Shanghai Securities News

Baidu released ERNIE Unlimited SVG, with about 0.5B activated parameters, which redraws an image as editable SVG layer by layer. A 2048x2048 image becomes 1,024 tokens. Weights are on Hugging Face.

What happened

On December 1, Baidu released and open-sourced ERNIE Unlimited SVG. The model takes an image and returns an editable SVG. With roughly 0.5 billion activated parameters, it generates more than 10,000 tokens of complex SVG at real-time speed.

Weights are on Hugging Face and GitHub, with an online demo. It is the second open model in the family's visual line, after the ERNIE Unlimited OCR series.

It does not trace outlines

Classic vectorisers sample pixels and trace edges. The output is a pile of fragments, and changing one colour means selecting a whole patch.

ERNIE Unlimited SVG takes another route. It reads objects, contours, colours and spatial relations, separates foreground from background, works out what occludes what, and redraws in a sensible layer order. The SVG carries precise coordinates, groups and layer data. Each layer can be edited alone, and the file can be re-rendered for a pixel-level check.

Efficiency comes from both ends

On input, a 2048x2048 image compresses to 1,024 visual tokens, while keeping small text, thin lines and exact coordinates. Those details are the first to vanish in compression, and they are the hardest part of vectorisation.

On output, a mixture-of-experts decoder activates about 0.5 billion parameters per token. Tightening both ends is what makes a small model produce tens of thousands of tokens in real time.

What it is for

Baidu names portraits, objects, CAD drawings, architectural plans and home design.

What those share is a demand for structure over pixels. Once a floor plan is understood as layers and coordinates, you can change dimensions, swap materials and separate levels, instead of holding an uneditable bitmap.

For design and engineering software, this opens a path from a screenshot or photo to editable geometry. It is imperfect, but it removes most manual tracing.

The other side

First, 0.5B activated parameters means structural errors on complex scenes. Get the occlusion wrong and the layer order breaks, which is worse than drawing from scratch.

Second, the demos are curated. Noise, reflections and translucent materials in real photos will push the model back toward tracing.

Third, the copyright line is unclear. Turning a protected photo into SVG still produces a derivative work. The better the tool, the more visible that grey area becomes.

What to watch

  • Reproductions on real photos and engineering drawings
  • Whether CAD or GIS vendors put it into production
  • File size and maintainability of the output in existing toolchains
  • Whether Baidu ships a larger variant

Nothing here is investment advice.

Source: Shanghai Securities News

Related