Home » Baidu’s Unlimited-SVG Transforms Images into Editable SVG

Baidu’s Unlimited-SVG Transforms Images into Editable SVG

By

–

Baidu's Unlimited-SVG Transforms Images into Editable SVG

Baidu has released Unlimited-SVG, an open-weight model that converts raster images into editable SVG code rather than tracing pixel contours. The model launched on December 1 under an MIT license and is available on Hugging Face, ModelScope, and GitHub.

The Shift Is Redraw, Not Trace

Most vector conversion tools walk the boundary between colours, producing a flat stack of paths that approximate visible edges. Unlimited-SVG takes a different approach: it recognises objects, contours, colours, and foreground-background relationships, then redraws the image as structured SVG grouped by shape. The output includes paths, groups, text elements, and coordinates that can be edited element by element.

This distinction matters for complex inputs. A tracer turns a photograph into hundreds of tone-approximating shapes and cannot infer that a building continues behind a car. Unlimited-SVG separates foreground from background, names the parts as it goes, and preserves hierarchical structure that conventional tracing loses.

How the Architecture Works

The model builds on the DeepSeek-OCR stack. A DeepEncoder tower compresses a 2,048×2,048 image into 1,024 vision tokens without splitting the input, preserving small text, thin lines, and precise positional information. On the output side, a sparse Mixture-of-Experts decoder activates roughly 0.5 billion of the model’s 3.3 billion total parameters per token, using 64 experts with 6 routed per token.

This design targets a specific bottleneck: complex SVGs routinely exceed 10,000 tokens, which makes dense frontier models slow and expensive. By keeping the active parameter count low, Unlimited-SVG sustains generation past 10,000 tokens in real time while remaining light enough for local deployment.

Local Execution and Hardware Requirements

The full weights total about 6.7 GB. Baidu lists x86-64 Linux and an NVIDIA GPU supporting BF16 as requirements, with 12 GB of VRAM as the practical minimum for local inference. The project ships both Transformers and vLLM inference paths, and a hosted ZeroGPU demo runs on Hugging Face Spaces.

Early community testing confirms the efficiency claims. One ComfyUI integration reported 14 GB VRAM usage and 83-second generation time, while another local test saw VRAM consumption under 2 GB with sub-minute processing on consumer hardware. The model card notes that temperature and sampling controls can manage SVG verbosity, and long outputs need stop criteria and VRAM headroom.

What It Handles Well — and Where It Breaks

The model targets structured visuals: logos, icons, diagrams, UI screenshots, CAD process drawings, architectural blueprints, and floor plans. Baidu’s case studies show raster inputs beside structured SVG output with layered groups and real text elements.

Text fidelity remains the weak point. In a bar-chart benchmark, the model reproduced the visual structure in four seconds but misread labels — an “L4 GPU” label mutated into “1/4 GPU” and then “14 GPU” after temperature tuning. Complex photography produces flattened textures, distorted faces, and warped details. The model card explicitly warns against photoreal art expecting gradient-perfect vectors and legal evidence workflows without human review of every path element.

Positioning and What Comes Next

Baidu frames the release as a follow-up to its Unlimited OCR initiative in the ERNIE series, positioning the lightweight MoE design against heavy API baselines like GPT-6.2 Astra and Claude Fable 5.2. No public benchmark or technical report accompanied the launch; the citation block on the project page still describes those as “coming soon.”

The model uses custom code (UnlimitedSVGForCausalLM) with deepseek_vl_v2 architecture tags, requiring trust_remote_code=True. A ComfyUI custom node is already available at github.com/filliptm/ComfyUI-FL-UnlimitedSVG. The Hugging Face repository shows 105 likes in its trending window — modest against chat LLMs, meaningful for a specialist vision export tool.

Sources

Photo: N509FZ (CC BY-SA 4.0)

Get breaking stories first on our Telegram channel.

More stories by

Most read

AI Tools

Artificial Intelligence

Business

World News