Photos and illustration
Redraw a detailed photo into an illustration for a website or a design asset. Fine textures are simplified.
Download sample SVGBAIDU ERNIE · OPEN MULTIMODAL MODEL
Unlimited SVG redraws photos, charts, and line art as structured vector code. Scale the result and edit its paths, shapes, and text.
HOW IT WORKS
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.
Preserve the aspect ratio and pad the image to 2048 × 2048. The reference scripts use a single global view without tiling.
2048 × 2048 · GLOBAL VIEWCompress 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 TOKENSA 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 SHAPESUSE CASES
These image pairs come from the upstream project. Switch views to see which details the model keeps, simplifies, or leaves out.
Redraw a detailed photo into an illustration for a website or a design asset. Fine textures are simplified.
Download sample SVG
Convert a chart screenshot into a vector draft for layout. Check the figures, axes, and labels against the original data.
Download sample SVG
Turn a raster drawing into an editable vector draft. Check dimensions, tolerances, and scale against the original drawing.
Download sample SVGExamples from the upstream case gallery
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
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.