Baidu Open-Sources ERNIE Unlimited SVG: DeepSeek-OCR-Based Model Turns Photos Into Editable Vector Graphics in One Click

IThome reported on December 1 that Baidu's ERNIE multimodal team released ERNIE Unlimited SVG, a specialized vector graphics model that progressively converts photos, screenshots, floor plans, parts diagrams and paper structure figures into editable SVG vector code. Built on DeepSeek-OCR with a mixture-of-experts architecture, it activates only about 0.5B parameters per token out of roughly 3B total and supports global reasoning on 2048x2048 images. Where traditional models often need more than 10,000 tokens to produce a complete SVG of a complex image, a DeepEncoder compresses a full 2048x2048 image into just 1024 visual tokens while keeping small text, thin lines and precise spatial coordinates, and the sparse-activation decoder sustains real-time generation beyond 10,000 tokens, so complex, long-sequence SVG conversion can run on a compact, locally deployable model instead of large cloud APIs. The model ships under the MIT license with Transformers and vLLM inference options.
IThome reported on December 1 that Baidu's ERNIE multimodal team has released a specialized vector graphics model, "ERNIE Unlimited SVG," which progressively restores inputs such as photos, screenshots, floor plans, parts diagrams and paper structure figures into editable SVG vector code.
The model is built on DeepSeek-OCR and uses a mixture-of-experts architecture, activating only about 0.5B parameters per token out of a total of roughly 3B, and it supports global reasoning on 2048x2048 images.
Unlike describing an image in words, SVG records lines, color blocks, coordinates, font styles and layer occlusion relationships as code, which can be rendered directly into high-resolution graphics and is also convenient for item-by-item checking and modification. When traditional models generate a complete SVG for a complex image, they often need more than 10,000 tokens, and long-context processing is slow and costly.
ERNIE Unlimited SVG uses DeepEncoder to compress an entire 2048x2048 image into only 1024 visual tokens while preserving key details such as small text, thin lines and precise spatial coordinates; on the decoding side, sparse-activation computing keeps generation real-time even beyond 10,000 tokens. This allows complex, long-sequence SVG conversion to be completed on a compact, locally deployable model, reducing reliance on large cloud APIs.
The model adopts the MIT license and offers both Transformers and vLLM for inference. The team recommends using a lower sampling temperature (the parameter that controls how "random" the results are) for images that require precise geometric and text consistency, such as CAD drawings, charts and schematics, and raising the temperature moderately for natural scenes and photos to avoid repeated strokes and improve output diversity.
Visit ERNIE Unlimited SVG on HuggingFace.