UnlimitedSVG.net

Guide · How to

How to use Unlimited SVG

You can use Unlimited SVG in two ways: online, by uploading an image to UnlimitedSVG.net, or on your own NVIDIA GPU with the official vLLM or Transformers scripts. Both use the same prompt and preprocessing and return one SVG file per image.

Convert an image to SVG

In short

  • Online: upload a PNG, JPG or WebP up to 10 MB, pick logo/diagram or photo/illustration, and download the SVG.
  • Self-hosted: the official setup needs x86-64 Linux, an NVIDIA driver and a free BF16-capable GPU.
  • The prompt is always “<image> SVG:”; the image is fitted into a 2048 × 2048 canvas first.
  • Use temperature 0–0.3 for graphics and diagrams and 0.5–0.8 for photos, as the README recommends.

Option 1: convert an image to SVG online

The quickest way is the converter on the UnlimitedSVG.net homepage. There is nothing to install, and you can watch the SVG appear while the model writes it.

  1. Upload an image. A PNG, JPEG or WebP up to 10 MB. Transparent areas are placed on white, as in the official pipeline.
  2. Choose what it shows. “Logo, icon or diagram” uses temperature 0 for exact shapes; “Photo or illustration” uses 0.6 for smoother color regions.
  3. Convert and watch. Simple graphics usually finish in under a minute; detailed images can take several minutes.
  4. Download or copy. Save the .svg file, or copy the code into your editor. If the conversion fails, the credit is refunded.

Option 2: run Unlimited SVG with vLLM

The repository includes a vLLM setup in its own Python 3.12 environment. Before serving, a small script patches vLLM’s DeepSeek-OCR processor to use a 2048 base size, a 2048 image size and no cropping, so the server sees images the way the model was trained.

The official serve command names the model Unlimited-SVG, enables trust-remote-code, allows one image per prompt and sets a 32,768-token context. Requests go to the OpenAI-compatible chat endpoint with the image as a base64 PNG data URL and the text “<image> SVG:”, with up to 30,000 output tokens and streaming on.

  • Preprocess: apply EXIF orientation, flatten transparency onto white, then pad to 2048 × 2048 with gray (127, 127, 127).
  • Decode: temperature 0 for graphics (higher for photos), top_p 1, top_k 0, repetition penalty 1.
  • Postprocess: keep the first complete <svg>…</svg> block and check that it parses as XML.

Option 3: run it with Transformers

For a single image without a server, the infer_hf.py script loads the model with Transformers in BF16 on a CUDA GPU and calls its built-in infer method with the same prompt and a 2048 base size. It writes the raw output and the extracted SVG to files.

Tips for better SVG results

A few habits help, online or self-hosted.

  • Crop to the subject: the whole image is fitted into one 2048 × 2048 canvas, so empty margins waste detail.
  • Prefer clean sources: a sharp PNG of a logo converts better than a blurry screenshot of it.
  • Expect large files for photos: every color region becomes a shape, so detailed photos can produce SVGs of hundreds of kilobytes.

Frequently asked questions

What GPU do I need to self-host Unlimited SVG?

The README asks for a free BF16-capable NVIDIA GPU on x86-64 Linux and does not give a minimum memory figure. Its vLLM example reserves 80% of GPU memory for a 32,768-token context.

Why did my conversion stop without an SVG?

The model must finish a complete <svg>…</svg> document. Very detailed images can run out of the 30,000-token budget or fall into repetition; try cropping the image or choosing the photo setting. On UnlimitedSVG.net the credit is refunded.

Is UnlimitedSVG.net made by Baidu?

No. UnlimitedSVG.net is an independent service that runs the open-source Unlimited SVG model under its MIT license. It is not affiliated with or endorsed by Baidu.

Sources

Updated 2026-12-01. UnlimitedSVG.net is an independent service running the open-source Unlimited SVG model (MIT license, by the Baidu ERNIE Multimodal Team). Not affiliated with or endorsed by Baidu.