hn.today

Baidu's Unlimited SVG generates SVGs from images stroke by stroke

huggingface.co33 points4 comments
Screenshot of Baidu's Unlimited SVG generates SVGs from images stroke by stroke

Unlimited-SVG is Baidu’s multimodal model for converting images into structured, editable SVG drawings. It targets a bottleneck in image tracing: complex SVG output can exceed 10,000 tokens, making generation slow and costly for large models. The system compresses images up to 2048 × 2048 pixels into 1,024 vision tokens while aiming to retain fine details, including small text, thin lines, and spatial positions. Its mixture-of-experts design activates about 0.5 billion parameters per token, which Baidu says enables real-time generation even for long SVG sequences and makes local deployment practical.

The model is available for inference through Transformers or vLLM on x86-64 Linux with a compatible NVIDIA GPU that supports BF16. The provided workflows resize images while preserving their aspect ratio, center them on a neutral 2048 × 2048 canvas, and composite transparency onto white; they can generate up to 30,000 new tokens and save the resulting SVG after checking that it is complete and valid XML. Greedy decoding is the default for reproducibility. Low temperatures are recommended for diagrams, charts, and CAD images where geometry and text must remain consistent, while higher temperatures are suggested for photos and natural scenes to encourage varied strokes and reduce repetitive output.

Read on huggingface.co4 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

FreeHand

FreeHand

FreeHand is an AI agent harness that gives frontier models a shell, editable memory, and control over tools and timeouts instead of prescribing workflows. Across 11 tests, it beat first-party harnesses for three frontier model families, averaging 5.1 points higher at 49% lower cost, while preset harnesses still performed better with weaker models. (microsoft.github.io)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.