Baidu's free Unlimited SVG turns floor plans into vectors – what it can really do
Baidu has released a small, freely licensed model that promises to turn photos, diagrams and floor plans into editable SVG code. Baidu hasn't published any benchmarks of its own. We've gathered the first community measurements, the existing comparison data for vtracer, OmniSVG and StarVector, and a fair test protocol.

What this is about
If all you have of a scanned floor plan, a bar chart from an old paper or a logo is a pixel image, you know the problem: you can't scale it up, let alone edit it. The fix is SVG (Scalable Vector Graphics), a format that describes lines, shapes, colors and text as code, so you can scale and edit it freely. Classic tools like vtracer or Inkscape's “Trace Bitmap” (based on Potrace) have produced such files for years. But the result usually consists of hundreds of nested curve paths that nobody wants to touch by hand.
That's where Unlimited SVG comes in. Baidu's ERNIE multimodal team released it on December 1, 2026 under the MIT license. Code and weights are available at github.com/baidu/Unlimited-SVG and huggingface.co/baidu/Unlimited-SVG, there's a project page at unlimited-svg.github.io and an online demo at unlimited-svg.github.io/demo/. Baidu says the model redraws images “stroke by stroke, like a human illustrator” instead of tracing pixels. It's supposed to separate foreground from background, fill in hidden parts and build up layers in a sensible order.
Our core question: does the model really deliver editable graphics, or just prettier pictures than the free tracers? Baidu doesn't offer a single number on this. So we've pulled together what's documented so far and put forward a test protocol that can answer the question fairly. This article contains no measurements of our own on our own hardware. All figures come from the sources cited or are calculated from them.
What's in the repository – and what's missing
Unlimited SVG is built on DeepSeek-OCR, a text recognition model from DeepSeek. Its image encoder (the part that turns the image into sequences of numbers) is called DeepEncoder. It squeezes a 2048 × 2048 pixel image into just 1,024 “vision tokens”, image building blocks the language model can read. According to Baidu, small text, thin lines and exact coordinates survive this process. The decoder that writes the SVG code is a Mixture-of-Experts (MoE) model: it consists of many specialized sub-networks, only a few of which run for each token.
OrcaRouter has analyzed the config file. According to it, the model has exactly 3,336,106,240 parameters, or 3.34 billion (Hugging Face rounds to “3B”). That matches the size of the weights file: 6.67 GB in BF16 at 2 bytes per parameter. Other specs: 12 layers, 64 experts plus 2 shared ones, 6 of which are active per token, a context window of 32,768 tokens, and a CLIP-L and a SAM-ViT-B branch on the vision side. The vocabulary is inherited from DeepSeek. One source (AGI Hunt) described the license as “Apache-like”. The license file in the repository, however, is clearly MIT.
What's missing is a lot. There's no technical report (citation block: “coming soon”), no benchmarks, no information on training data, no VRAM requirements and no measurement of the promised “real time” at more than 10,000 tokens. For comparison, Baidu only mentions GPT-6.2 Astra, Claude Fable 5.2 and Gemini 4 Argon qualitatively, saying this capability was previously reserved “only for frontier models”. Its predecessor Unlimited OCR from June 2026 was a different story: it launched with an arXiv paper and figures like 93.23 percent on OmniDocBench v1.5. OrcaRouter therefore calls Unlimited SVG “unevaluated”.
The first numbers come from the community
The most concrete measurements so far come from a Hugging Face user who built a ComfyUI port (github.com/Nynxz/ComfyUI-UnlimitedSVG). On an RTX 5090 in BF16, he reports peak usage of 7.24 GB VRAM at 2048 × 2048 pixels and about 150 tokens per second, including image ingestion. His trick is chunked attention in the image encoder, which he says saves about 6 GB of peak memory without changing the output. That suggests the original path needs something on the order of 13 GB. That's our estimate, not a measurement.
Do the math: a complex SVG with 10,000 tokens takes about 67 seconds at 150 tokens/s. The 30,000-token maximum in Baidu's sample script works out to just over three minutes. On weaker cards it'll take correspondingly longer. So “real time” really only applies to simple subjects.
The Chinese portal 163.com reports examples on unknown hardware. A floor plan reportedly finished in about 10 seconds, with correctly recognized windows, door arcs and the dimensions 7200 × 4800 mm. A snowy mountain scene took 4 seconds, 510 tokens and 10 graphic elements, and the file was only 1.1 percent the size of the PNG. In a six-panel paper figure, however, “Diffusivity” became “Difficulty”. Errors like that are exactly what makes text recognition in technical diagrams tricky.
OrcaRouter also dissected the showcase SVG from Baidu's landing page: 38,590 bytes, 19 groups, 16 of them with descriptive names like “street-light”, 353 paths, 10 rectangles, 15 circles and 2 ellipses, plus 10 gradients. Named groups are a real plus for further editing. Applying the cleanliness formula from the VFIG paper (share of simple primitives among all shapes), we get only about 7 percent. For a nighttime street photo, though, that's to be expected.
Why the usual pixel metric is misleading
SSIM (Structural Similarity) measures how closely the rendered SVG matches the original, pixel by pixel. Classic tracers almost always win on this metric because they trace the pixels exactly. The leaderboard on sota2.com for the SVG-Diagrams dataset (values from the VFIG paper, March 2026) shows this clearly:
| Method | SSIM | Clean (share of primitives) | Render success |
|---|---|---|---|
| VTracer | 88.5 | 0 | 100 |
| StarVector-8B | 67.7 | 42.6 | 54.3 |
| Gemini-3-flash | 67.2 | 68.0 | 99.1 |
| VFig-4B (SFT+RL) | 65.4 | 78.8 | 97.3 |
| GPT-5.2 | 60.6 | 68.8 | 98.4 |
| OmniSVG-4B | 58.6 | 0 | 87.5 |
According to the VFIG paper, “Clean” counts how many shapes are real rectangles, circles, ellipses, lines or polylines rather than free-form paths. VTracer delivers perfect pixels but zero percent clean building blocks – the proverbial path soup. The authors warn:
A misplaced arrow may barely affect SSIM, yet it can substantially change the meaning of the diagram.
The blog of design platform Lica reaches the same conclusion: VTracer's code there is roughly ten times as long as that of AI models. OmniSVG scores well on pixel deviation even though its colors are wrong. StarVector shows how much the evaluation setup shapes the results: in its own paper, StarVector-8B edges out VTracer on SVG-Diagrams with an SSIM of 0.890 versus 0.877, while in the VFIG evaluation it falls clearly behind.
Our test protocol: six images, eight metrics
A fair comparison needs more than SSIM. We propose this reproducible set: logo, bar chart, floor plan, circuit diagram, screenshot, photo. For each image and tool, we measure:
| Metric | Why |
|---|---|
| SSIM after rendering | Pixel fidelity (favors tracers) |
| Render success | Is the SVG valid and complete? |
| File size in bytes | Compactness |
Number of <path> elements |
Path-soup indicator |
| Clean share (primitives) | Editability per the VFIG formula |
Text as <text> and typos |
Can you edit the labels? |
| Runtime | Real-world usability |
| Peak VRAM | Hardware barrier |
The candidates at a glance, with details from their respective project pages:
| Tool | Type | License | Memory (per source) | Known limitation |
|---|---|---|---|---|
| Unlimited SVG | MoE, 3.34B | MIT | 7.24 GB (community port) | no benchmarks |
| vtracer | Algorithm | MIT | CPU | paths only |
| Inkscape/Potrace | Algorithm | GPL (Inkscape) | CPU | one path per color scan |
| OmniSVG1.1 4B / 8B | Qwen-VL base | Apache 2.0, data CC BY-NC-SA | 17 / 26 GB | 4,096 tokens take 83 or 98 s per README |
| StarVector-8B | StarCoder2 base | Apache 2.0 | not stated | per Model Card unsuitable for photos and illustrations |
| Frontier API | closed | paid | cloud | privacy, cost |
Fair rules: the same input at 2048 pixels on the long edge, temperature 0 for technical images and 0.6 for the photo, the same prompt for the API, and at least three runs when sampling.
What you need to try it
Officially, Baidu only supports x86-64 Linux with an NVIDIA graphics card that handles BF16, plus the uv package manager. The download is about 6.7 GB. Going by the reported figures, the ComfyUI port works on cards with around 8 GB VRAM or more. For the original path, we'd budget 12 GB or more (estimate). There's no Mac support, CPU-only mode, GGUF files or Ollama at launch. If you just want to take a look, use the online demo.
There are two routes: Transformers (Python 3.12, exactly torch 2.6.0 and transformers 4.46.3, trust_remote_code=True) for single images, or vLLM 0.33.0 as a local server. For the vLLM route, the instructions tell you to manually change three constants in a library file (image size 2048, no tiling). OrcaRouter sees this as a sign of research code. The scripts pad every image onto a gray 2048 canvas and flatten transparency to white.
For temperature – the randomness dial – Baidu recommends 0 to 0.3 for CAD, diagrams and charts, and 0.5 to 0.8 for photos. Otherwise the model gets stuck in loops. If the script doesn't find a complete SVG, it silently writes the raw output to output.txt.
A security note: in a Hugging Face discussion, a user criticizes eval() calls in modeling_unlimitedsvg.py as “unnecessarily risky”. By our reading, seven of these calls evaluate text generated by the model. They appear to come from the DeepSeek-OCR code and sit in a branch for saving results that, as we read it, the sample script doesn't use. Baidu hadn't responded by the time of publication. Regardless: sanitize generated SVGs before publishing them, because SVG can contain external references and scripts – a point explainx.ai also makes.
The bottom line
Unlimited SVG is interesting because it aims to close the gap between pixel tracing and expensive frontier APIs with a freely licensed model that runs locally. With 0.5 billion active parameters it's fast and, according to community measurements, runs in under 8 GB VRAM. For comparison: OmniSVG needs 17 to 26 GB, and its training data is licensed for non-commercial use only.
But little has been proven so far. The examples come from Baidu or from press materials with unknown selection criteria, the report is missing, and the training data is unknown. And the MIT license only covers the model, not the rights to the logo or plan you're vectorizing.
Our take: for technical drawings and diagrams, this is the most exciting open contender. Whether it really delivers primitives and real <text> instead of path soup there has to be shown by a test with clean-share and text checks – not by SSIM alone. Until then, check every result that contains dimensions or labels against the original.
Sources
- Hugging Face: baidu/Unlimited-SVG (Modellkarte) huggingface.co
- Hugging Face: Dateiliste baidu/Unlimited-SVG huggingface.co
- GitHub: baidu/Unlimited-SVG github.com
- Projektseite Unlimited SVG Works unlimited-svg.github.io
- Hugging Face Diskussion #1: eval() im Modellcode huggingface.co
- Hugging Face Diskussion #2: ComfyUI Nodepack huggingface.co
- GitHub: Nynxz/ComfyUI-UnlimitedSVG github.com
- OrcaRouter: ERNIE Unlimited SVG – Still No Evals orcarouter.ai
- explainx.ai: Unlimited-SVG explainx.ai
- AlphaSignal: Baidu's Unlimited SVG alphasignal.ai
- ITHome (via ifeng): 百度发布文心Unlimited SVG tech.ifeng.com
- 163.com: Testbeispiele zu Unlimited SVG 163.com
- Sina Tech: 百度开源文心Unlimited SVG finance.sina.com.cn
- SOTA2: Figure-to-SVG auf SVG-Diagrams sota2.com
- SOTA2: Figure-to-SVG auf VFig-Bench sota2.com
- arXiv: VFIG – Vectorizing Complex Figures in SVG arxiv.org
- Lica: Why SVG generation needs a new scorecard lica.world
- arXiv: StarVector arxiv.org
- Hugging Face: starvector/starvector-8b-im2svg huggingface.co
- GitHub: OmniSVG/OmniSVG github.com
- GitHub: visioncortex/vtracer github.com
Try it yourself: Unlimited SVG
Explained step by step, no prior knowledge needed – on your own computer or free in your browser.
What can I do with it?
Unlimited SVG takes a pixel image – a photo, a screenshot, a floor plan, a technical drawing or a figure from a paper – and writes SVG code from it. You can open the resulting vector graphic in Inkscape, Figma or your browser, scale it as much as you like, and move or recolor individual elements. Unlike classic tracers such as vtracer, it's designed to recognize objects, organize them into named groups and layers, and fill in hidden parts. The model isn't a chatbot: it only receives an image and the fixed prompt “<image> SVG:”, and it can't invent new images from a text description. Baidu hasn't published any benchmarks yet. Individual examples show good results on floor plans, but also misread technical terms (such as “Diffusivity” becoming “Difficulty”). Complex images can produce 10,000 to 30,000 tokens of code, which takes one to three minutes at about 150 tokens/s on an RTX 5090.
Who is it worth it for?
Worth it for anyone who regularly needs old diagrams, floor plans, circuit diagrams or logos as editable vector graphics and has an NVIDIA graphics card on Linux – architecture students, makers, teachers or researchers, for example. If you only work on a Mac or without an NVIDIA card, use the online demo or stick with vtracer or Inkscape for now. For legally binding or safety-critical plans, the output isn't suitable without human review.
Ideas: What you can do with it
Photograph a paper floor plan, convert it at temperature 0 and open the SVG in Inkscape. You can then move walls and doors and edit dimensions as text. The result is a scalable sketch for renovation or furniture planning, not a verified construction drawing.
Crop a figure from a PDF and convert it. Axes, bars and labels end up as code in the SVG, so you can change colors or language for a presentation. Always check numbers and technical terms against the original.
A blurry logo that only survives as a small JPG becomes a vector graphic for banners, plotters or T-shirt printing. Then fix the colors in Inkscape and delete unnecessary paths. You need to own the rights to the logo yourself.
A photographed circuit diagram from an old magazine becomes an editable SVG. That lets you rename components or reprint the diagram cleanly for a guide. Check the wiring connections carefully.
At a temperature around 0.6, a landscape or city photo becomes a flat vector illustration with gradients. Good for posters, website backgrounds or plotters. Don't expect an exact copy.
What your computer needs
There's only one variant: baidu/Unlimited-SVG with 3.34 billion parameters (about 0.5 billion active per token) as a single 6.67 GB BF16 file. Quantized versions (GGUF, 4-bit) aren't available at launch. The ComfyUI community port measured 7.24 GB peak VRAM, so cards with around 8 GB or more are realistic. For the official Transformers or vLLM route without that optimization, we estimate you should budget 12 GB or more.
- Officially only x86-64 Linux with an NVIDIA graphics card that handles BF16 (in practice RTX 30 series and newer), plus a matching driver.
- Download about 6.7 GB. Measured peak usage in the ComfyUI port: 7.24 GB VRAM at 2048 × 2048 pixels on an RTX 5090.
- The image size is fixed: every image is padded onto a 2048 × 2048 gray canvas. Larger inputs don't help.
- Long outputs take time: at about 150 tokens/s, an SVG with 10,000 tokens takes just over a minute, and the 30,000-token maximum just over three minutes.
- No official support for Mac/Apple Silicon or CPU-only, no GGUF or Ollama version. The online demo is the alternative.
How do I find out what my computer has?
- Windows: Press Ctrl + Shift + Esc → Task Manager → Performance tab → click GPU on the left. At the bottom you'll see Dedicated GPU memory (that's your VRAM). You'll find system memory under Memory.
- Mac: Apple menu at the top left → About This Mac. You'll see your chip (e.g. M2) and memory (e.g. 16 GB). On Apple chips, graphics and processor share this memory.
- Linux: Type
nvidia-smiin the terminal (shows your graphics card and its memory) andfree -hfor system memory.
Guide
Google Colab (in your browser, no installation)
Google Colab is a free service from Google. It gives you a computer with a graphics card in your browser for a few hours. All you need is a Google account. For this model: runs for free – The free Tesla T4 GPU with 15 GB is enough.
- Download the notebook. Click the button and save the file.
- Open Colab. Go to colab.research.google.com and sign in with your Google account.
- Upload the notebook. In the window that appears, click Upload on the left (or choose File → Upload notebook at the top) and select the file
colab.ipynb. - Turn on the GPU. In the top menu, go to Runtime → Change runtime type → under Hardware accelerator, select T4 GPU → Save.
- Start everything. Runtime → Run all (keyboard shortcut Ctrl + F9). If you see the warning “This notebook was not authored by Google,” click Run anyway.
- Wait. The cells run one after another. A green checkmark appears to the left of each cell when it's done. Installation and download take about 5 minutes here.
- Try it out. The result appears below the last cell. To test something else, change the text in the cell and run it again with Shift + Enter. The last cell starts a proper chat with an input field.
- Clean up. When you're done: Runtime → Disconnect and delete runtime. This saves your free quota.
Good to know: The free GPU is limited (usually a few hours per day). After about 90 minutes of inactivity, Colab disconnects, and you'll have to start everything over.
Windows 10 / 11
The easiest way is Ollama, a free program that launches AI models with a single command.
- Update your graphics driver (NVIDIA cards only): Install the NVIDIA app or the latest driver. For AMD cards, use the latest Adrenalin driver.
- Install Ollama. Download the file OllamaSetup.exe from ollama.com/download/windows, double-click it, and choose Install. Afterward, a small llama icon appears in the taskbar at the bottom right.
- Open a terminal window. Press the Windows key, type PowerShell and press Enter. A blue or black window opens.
- Start the model. Copy this command ("Copy" button), paste it into the window with a right-click, and press Enter:
The first time, Ollama downloads the model (3.1 GB (about 4 min at 100 Mbit/s)). After that, it's instant.ollama run hf.co/markldn/Unlimited-SVG-GGUF:Q8_0 - Start typing. Once
>>> Send a messageappears, type your question and press Enter. Type/byeto end the chat.
Prefer automatic? A script that picks the right variant for you
- Download both files into the same folder: try_windows.ps1 demo.py
- Open the folder in File Explorer, right-click an empty spot and choose Open in Terminal.
- Paste this command and press Enter:
powershell -ExecutionPolicy Bypass -File try_windows.ps1
If needed, the script installs Ollama via winget, measures your VRAM (video memory) and downloads the matching variant.
macOS
Macs with an Apple chip (M1 to M5) are ideal. Older Intel Macs are very slow.
- Install Ollama. Download it from ollama.com/download/mac, open the file, and drag Ollama into your Applications folder. Launch Ollama once – a llama appears in the menu bar at the top.
- Open Terminal. Press Cmd + Space, type Terminal, and press Enter.
- Start the model. Paste the command (Cmd + V) and press Enter:
The first time, the model is downloaded (3.1 GB (about 4 min at 100 Mbit/s)).ollama run hf.co/markldn/Unlimited-SVG-GGUF:Q8_0 - Start typing. Type your question and press Enter. Quit with
/bye.
Linux
- Check your GPU.
nvidia-smishould show your card. If it doesn't, install the driver on Ubuntu and restart:sudo ubuntu-drivers install - Install Ollama:
curl -fsSL https://ollama.com/install.sh | sh - Start the model:
Exit withollama run hf.co/markldn/Unlimited-SVG-GGUF:Q8_0/bye. Useollama psto check whether the model is running on the GPU. - Or let it pick the right variant automatically:
bash try_linux.sh # mit Python/transformers statt Ollama: MODE=hf bash try_linux.sh
Try it
A photo of a hand-drawn floor plan of your apartment with dimensions – then check whether the dimensions survive as textA screenshot of a bar chart from a spreadsheet or PDF – check whether the axis labels come through as editable textA low-resolution scan of a club logo – at temperature 0 for clean shapesA circuit diagram from an old DIY guide – check whether component labels are read correctlyA landscape photo at temperature 0.6 – shows how the model builds up layers and gradients
Tips for better results
- Use a temperature of 0 to 0.3 for CAD drawings, diagrams and charts (the script default is 0), and 0.5 to 0.8 for photos and nature scenes.
- Transparent PNGs are automatically placed on a white background. If you have light lines on a transparent background, add a dark background first.
- Always overlay the result on the original in your browser or Inkscape and check dimensions and labels, since the model can misread words.
- If you use ComfyUI, try the community port ComfyUI-UnlimitedSVG: according to its developer it needs significantly less VRAM and automatically closes truncated SVGs.
- For further editing, check Inkscape's Layers panel to see whether the model created named groups. That saves a lot of cleanup.
If something goes wrong
Stick to the exact package versions: Transformers needs Python 3.12 with torch 2.6.0 and transformers 4.46.3. Newer transformers versions can break with the bundled model code.
For the vLLM route (vllm 0.33.0, torch 2.14.0), the instructions say you need to patch vLLM's DeepSeek-OCR processor file (image size 2048, tiling off). Without the patch, the results are wrong.
Loading requires trust_remote_code=True. The model code contains eval() calls on model output, which a Hugging Face discussion flagged as risky. Best to run it in an isolated environment.
If no complete SVG is produced (e.g. the token limit is hit), the script silently writes the raw output to output.txt. Adjust the temperature or try a simpler image.
With photos at temperature 0, the model can get stuck in repetition loops. Use 0.5 to 0.8 for photos.
Sanitize generated SVGs before publishing them on a website, since SVG can contain external references.
“out of memory,” a crash, or your computer freezes
The model is too big for your VRAM (video memory). Pick a smaller variant from the table above and close other programs, especially games and browsers with lots of tabs.
It runs, but extremely slowly
Your CPU is probably doing the work instead of your graphics card. In Ollama, the PROCESSOR column of ollama ps shows how much runs on the GPU. If it says "100% CPU", update your graphics driver or pick a smaller variant that fits entirely into VRAM (video memory).
“ollama” or “python” is not found
Close the terminal window and open it again so it recognizes the newly installed program. For Python on Windows: reinstall it and check Add python.exe to PATH.
Windows: "Running scripts is disabled on this system"
Run the script with exactly the command above: powershell -ExecutionPolicy Bypass -File try_windows.ps1. This allows execution for this one time only.
Error message when loading the model (version, "trust_remote_code", unknown architecture)
Brand-new models often need the latest software version. With Ollama: update Ollama. With Python: pip install -U transformers in the activated environment. The Model Card usually lists the exact version.
Tokenstrom generates the scripts and notebook automatically. Please take a quick look before running them – they're plain, readable text. Mind the model's license: mit.
Ask the AI assistant
Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.
The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.
Comments
What do you think? Already tried it? Write it here, no sign-up needed.
Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.