Unlimited SVG

BAIDU ERNIE · OPEN MULTIMODAL MODEL

Turn images intoeditable SVGs

Unlimited SVG redraws photos, charts, and line art as structured vector code. Scale the result and edit its paths, shapes, and text.

Model outputIMAGE / SVG
Photograph of a city street at night with traffic light trails Vector redraw of the city street and its traffic light trails
Drag the slider to compare the photograph and model output
Image input canvas
2048²
Input vision tokens
1,024
Active parameters per token
≈0.5B
Output tokens reported by the project
10,000+

HOW IT WORKS

Read the whole image. Draw it path by path.

A complex SVG can run to over ten thousand tokens. Built on DeepSeek-OCR, Unlimited SVG reduces compute in both visual encoding and code generation.

  1. Prepare the whole image

    Preserve the aspect ratio and pad the image to 2048 × 2048. The reference scripts use a single global view without tiling.

    2048 × 2048 · GLOBAL VIEW
  2. Encode with DeepEncoder

    Compress the whole image into 1,024 vision tokens so the decoder can use both the overall layout and fine-grained visual cues.

    1,024 · VISION TOKENS
  3. Decode SVG with MoE

    A sparse mixture-of-experts decoder writes SVG one token at a time. The reference scripts extract the complete SVG and parse the XML.

    STRUCTURED SVG · PATHS AND SHAPES

USE CASES

See what the model actually draws

These image pairs come from the upstream project. Switch views to see which details the model keeps, simplifies, or leaves out.

Rainbow above a valley
Rainbow above a valley · Generated SVG Rainbow above a valley · Original image

Photos and illustration

Redraw a detailed photo into an illustration for a website or a design asset. Fine textures are simplified.

Download sample SVG
Net profit and growth chart
Net profit and growth chart · Generated SVG Net profit and growth chart · Original image

Charts and reports

Convert a chart screenshot into a vector draft for layout. Check the figures, axes, and labels against the original data.

Download sample SVG
Three views of a ring-shaped part
Three views of a ring-shaped part · Generated SVG Three views of a ring-shaped part · Original image

Engineering drawings

Turn a raster drawing into an editable vector draft. Check dimensions, tolerances, and scale against the original drawing.

Download sample SVG

Examples from the upstream case gallery

What should you verify?

Treat the SVG as an editable draft. Small text, data labels, exact dimensions, and photo textures can differ from the input. Verify charts and drawings against the source data and plans.

TRY ONLINE

Try it with your own images

Open Baidu’s official demo on Hugging Face to upload an image, watch it generate, and download the SVG. You can also follow the project guide to run the model locally.