Baidu Open-Sources Unlimited SVG to Convert Photos into Editable Vector Graphics

Original title: 百度开源文心 Unlimited SVG:基于 DeepSeek-OCR,照片一键变可编辑矢量图
78AI Score

Baidu's ERNIE multimodal team has open-sourced Unlimited SVG, a dedicated vector graphics model that progressively reconstructs photos, screenshots, floor plans and part diagrams into editable SVG code. Built on DeepSeek-OCR with a Mixture-of-Experts architecture of roughly 3B total parameters and about 0.5B activated per token, it compresses a 2048x2048 image into 1024 visual tokens via DeepEncoder and sustains real-time generation beyond 10,000 tokens. Released under the MIT license, it supports Transformers and vLLM inference and can run locally.

Full Report

IT之家 December 1 news: Baidu's ERNIE multimodal team has released a dedicated vector graphics model, "ERNIE Unlimited SVG," which can progressively reconstruct input content such as photos, screenshots, floor plans, part diagrams, and paper structure diagrams into editable SVG vector code.

The model is built on DeepSeek-OCR and adopts a mixture-of-experts architecture, activating only about 0.5B parameters per token, with a total parameter count of about 3B, and supports global inference on 2048×2048 images.

Unlike describing images in words, SVG records lines, color blocks, coordinates, font styles, and layer occlusion relationships in the form of code, and can be rendered directly into high-definition images, making it easy to check and modify item by item. When traditional models generate complete SVGs for complex images, they often require more than 10,000 tokens, resulting in slow long-context processing and high costs.

Unlimited-SVG uses DeepEncoder to compress an entire 2048×2048 image into only 1,024 visual tokens while preserving key details such as small text, fine lines, and precise spatial coordinates; the decoding side relies on sparse activation computation to maintain real-time generation capability even beyond 10,000 tokens. This enables complex, long-sequence SVG conversion to be completed on a compact model that can be deployed locally, reducing dependence on large cloud APIs.

Baidu open-sources ERNIE Unlimited SVG: based on DeepSeek-OCR, turning photos into editable vector graphics with one click

The model uses the MIT license and provides two inference methods: Transformers and vLLM. The official recommendation is that when processing images such as CAD drawings, charts, and schematic diagrams that require precise geometry and text consistency, a lower sampling temperature (a parameter used to control the "randomness" of results) should be used; when processing natural scenes and photos, the temperature can be appropriately increased to avoid repeated strokes and improve output diversity.

IT之家 attaches the reference addresses