Unlimited-SVG vs VTracer & Potrace: Semantic Vectorization
How Baidu Unlimited-SVG compares with VTracer, Potrace, and Illustrator Image Trace for clean, editable vector paths, with an interactive demo.

When Baidu's ERNIE Multimodal Team open-sourced Unlimited-SVG (baidu/Unlimited-SVG) under the MIT license, the first question across Reddit's r/LocalLLaMA, Hugging Face, and design engineering threads was straightforward: why run a 3-billion-parameter vision-language model when fast, deterministic tracers like Potrace, VTracer, and Adobe Illustrator Image Trace already exist?
The short answer comes down to the difference between tracing pixels and rebuilding structure.
Why Traditional Tracers Produce "Polygon Soup"
Algorithmic vectorizers such as Potrace and VTracer work by clustering pixel colors and fitting Bezier contours around pixel boundaries. They are remarkably fast, run on a CPU, and give identical output every time.
However, when you open a traced UI screenshot, chart, or multi-layer logo in Figma or Illustrator, the limits show up immediately:
- No occlusion awareness: If a coffee mug sits in front of a rounded card or a tree overlaps a mountain ridge, a pixel tracer slices the background into disconnected shards around the foreground object. Moving the foreground object leaves a hole behind it.
- Fragmented path counts: Anti-aliased edges and subtle compression artifacts turn clean rectangles and circles into dozens of jagged micro-paths.
- Flat hierarchy: Paths land in one flat list with no semantic
<g>groups separating backgrounds, containers, and foreground icons.
How Unlimited-SVG Approaches the Problem Differently
Instead of fitting mathematical curves to pixel edges, baidu/Unlimited-SVG treats image-to-SVG conversion as a vision-to-code task using two architectural choices designed for long vector files:
- Global 2048x2048 Vision Compression (DeepEncoder): Drawing from the DeepSeek-OCR encoder lineage, Unlimited-SVG compresses a full
2048x2048canvas into 1,024 vision tokens without slicing the image into independent tiles. Thin borders, chart gridlines, and small symbols stay in one shared coordinate space. - Sparse MoE Decoding (~0.5B Active Parameters): Complex SVGs routinely exceed 10,000 output tokens. By using a Mixture-of-Experts decoder (~3B total parameters, roughly 0.5B active per token), the model sustains long-horizon XML generation without the latency and memory wall of dense frontier vision models.
Because the decoder writes SVG sequentially from back to front, it tends to emit clean geometric primitives (<circle>, <rect>, compact <path> shapes) organized into logical <g> groups, such as drawing the full backdrop first and layering foreground shapes cleanly on top.
Try Unlimited-SVG Directly in This Article
Rather than taking architectural claims on faith, upload your own logo, UI wireframe, flat illustration, or CAD diagram below, or click any of the four built-in examples to drag the Before/After slider and inspect real output from our live Unlimited-SVG deployment.
Drop a PNG, JPG, or WebP below, or switch samples to compare raster input against Unlimited-SVG output.
Drop an image or click to upload
Paste with Cmd+V or choose PNG, JPG, WebP up to 10 MB
- Automatically adapts to logos, UI screens, illustrations, and technical drawings
- Runs Best-of-4 visual selection with targeted local detail repair
- Auto-trims margins and seals anti-aliasing seams for Figma-ready SVG output
No login required. Generate a watermarked preview first and pay only if you want the clean SVG.

Side-by-Side Comparison: Choosing the Right Tool
| Approach | Core Mechanism | Typical Output | Best Fit |
|---|---|---|---|
| Potrace / VTracer | Deterministic pixel-edge contour fitting on CPU | Exact pixel silhouettes, often split into dense ungrouped paths | High-contrast monochrome scans, stamps, simple silhouettes where speed and zero GPU cost matter |
| Illustrator Image Trace | Algorithmic path fitting with manual preset tuning | Editable paths that still need manual ungrouping and node cleanup | Designers already inside Adobe Creative Cloud who want interactive threshold sliders |
| Unlimited-SVG (MIT) | Vision-language code generation (DeepEncoder + sparse MoE decoder) | Semantic back-to-front <g> layers and compact geometric primitives | Brand marks, UI wireframes, technical diagrams, charts, and layered editorial illustrations meant for Figma or web code |
Honest Limitations to Keep in Mind
Community discussions around Unlimited-SVG also highlight realistic boundaries that matter before adopting it in a workflow:
- No independent benchmark consensus yet: Baidu released open weights under MIT without an official third-party benchmark table (such as standardized Chamfer Distance or FID suites across public datasets). Testing on your own production artwork remains the most reliable evaluation.
- Compute vs. CPU tracers: Running the open weights locally typically calls for a 12GB+ VRAM GPU (BF16 via vLLM or Transformers) or community quantized ports (GGUF, MLX on Apple Silicon, or experimental WebGPU builds). It takes seconds rather than milliseconds.
- Dense natural photographs: Like all vector representations, noisy camera photographs with continuous lighting gradients push SVG token counts high and rarely look cleaner as flat vectors than structured graphics, icons, UI mockups, and illustrations.
Summary
Potrace and VTracer are not obsolete: for deterministic monochrome tracing on a CPU, they remain unbeatable. Unlimited-SVG solves a different problem, turning raster logos, UI wireframes, diagrams, and layered illustrations into clean, editable SVG markup you can actually modify in Figma or ship straight into code.