hn.today

Unlimited SVG Works: Projection of Visual Worlds into SVG-Anything

github.com4 points0 comments
Screenshot of Unlimited SVG Works: Projection of Visual Worlds into SVG-Anything

Unlimited SVG Works is a Baidu multimodal model that converts images into structured, editable SVG markup. It targets a practical bottleneck: complex vector drawings can require more than 10,000 output tokens, making generation slow and costly for large models. The system builds on DeepSeek-OCR and pairs a compact visual input with sparse computation. Its DeepEncoder represents an image up to 2048 × 2048 pixels using 1,024 vision tokens while retaining details such as small text, fine lines, and spatial placement. A mixture-of-experts design activates about 0.5 billion parameters per token, which the project says enables real-time generation of long SVG outputs on a compact, locally deployable model.

The repository provides inference paths using Transformers or vLLM, with model weights hosted on Hugging Face and a community demo also available through Hugging Face Spaces and ModelScope. Both workflows prepare an image on a 2048-square canvas, preserve its aspect ratio, and place transparent areas on white; they then request SVG output, extract it, and validate its XML structure. Greedy decoding is the default for deterministic results. The guidance recommends low temperatures for diagrams, CAD, charts, and text-heavy images where geometric precision matters, and higher temperatures for photographs or natural scenes to encourage varied strokes and limit repetition. Running the examples requires Linux, a compatible NVIDIA setup, and a free BF16-capable GPU.

Read on github.com0 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

The daily digest

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