Skip to content

Blog

Baidu releases a free AI that turns a single photo into a layered SVG

2 min read

Unlimited SVG sample output with layers turned off one at a time (Baidu ERNIE)

A single photo of a city went in, and an SVG split into 12 layers came out: buildings, roads, cars and light streaks. Turn off the car layer, and the road the cars were hiding has been drawn in too.

This is Unlimited SVG, an AI that Baidu released for free on December 1. It redraws photos as SVGs. The video shows Baidu's official sample output with the layers turned off one by one.

Baidu says it does not trace outlines along the pixels. Instead, it separates what is in front from what is behind, infers even the hidden parts, and redraws the image layer by layer. That is why, when you turn off the building layers on either side, the high-rises standing behind them have been drawn separately.

Baidu said it has done with a small model, about 500 million parameters of which are actually used in computation, what until now only top models such as GPT-6.2 Astra, Claude Fable 5.2 and Gemini 4 Argon could do. It has not yet published comparison scores, however.

Because it is under the MIT license, you can use it for free in your work too. You can also try it right away on its Hugging Face demo page, with nothing to install.

It is fairly common to need to edit and reuse a logo or illustration when only an image is left and the original file is gone. Since the output is an SVG split into layers, you can change just the parts you need in Figma or Illustrator. I think it may be even more useful for people who are not designers.

Announcement: Unlimited SVG Works (Baidu ERNIE), code: GitHub, demo: Hugging Face