aifollow.news
返回 IT之家 科技新闻
IT之家 科技新闻· · 原发布时间 AI 评分54

百度文心团队发布 Unlimited SVG,可将照片转为可编辑矢量图

AI 辅助摘要

百度文心多模态团队发布文心 Unlimited SVG,可将照片、截图、户型图等逐步还原为可编辑的 SVG 代码。模型基于 DeepSeek-OCR 构建,支持 2048×2048 图像推理;项目采用 MIT 许可证,并提供 Transformers、vLLM 两种推理方式。

正文 · AI 翻译

IT Home reported on December 1 that Baidu’s ERNIE multimodal team has released a specialized vector graphics model, “ERNIE Unlimited SVG,” that can progressively reconstruct input such as photos, screenshots, floor plans, parts drawings, and structural diagrams from academic papers into editable SVG vector code.

Built on DeepSeek-OCR, the model uses a mixture-of-experts architecture, activating only about 0.5B parameters per token out of approximately 3B total parameters, and supports global inference on 2048×2048 images.

Unlike a text description of an image, SVG records lines, color blocks, coordinates, font styles, and layer occlusion relationships in code. It can be rendered directly as a high-resolution image and makes it easy to check and modify individual elements. When traditional models generate complete SVGs for complex images, they often require more than 10,000 tokens, making long-context processing slow and costly.

Unlimited-SVG uses DeepEncoder to compress an entire 2048×2048 image into just 1024 visual tokens while retaining key details such as small text, fine lines, and precise spatial coordinates. Its decoder uses sparse activation to maintain real-time generation even when output exceeds 10,000 tokens. This enables complex, long-sequence SVG conversion on a compact model that can be deployed locally, reducing reliance on large cloud APIs.

The model is available under the MIT license and offers two inference methods: Transformers and vLLM. The developers recommend using a lower sampling temperature—a parameter that controls how random the results are—for images such as CAD drawings, charts, and diagrams that require precise geometry and consistent text. For natural scenes and photos, the temperature can be raised moderately to avoid repeated strokes and increase variety in the output.

IT Home provides the following reference links.

Visit ERNIE Unlimited SVG on HuggingFace

Visit ERNIE Unlimited SVG on GitHub

Try Unlimited SVG Works online

Advertising disclosure: External links in this article, including but not limited to hyperlinks, QR codes, and access codes, are provided to convey more information and save time in selecting resources. The results are for reference only. All IT Home articles containing external links include this disclosure.

发现内容有误?提交纠错