Extensions/ComfyUI-Unlimited-SVG
ComfyUI Extension

ComfyUI-Unlimited-SVG

Native high-speed ComfyUI nodes for Baidu Unlimited-SVG with comfy-kitchen W4A8/W6A8/INT8 quantization, Triton fused MoE/SAM/KV kernels, and lossless SVG speculative decoding.

By einhorn13·Created about 22 hours ago·Updated about 20 hours ago· 2
einhorn13/ComfyUI-Unlimited-SVG
Nodes—
On cloudLocal install
Stars2
Updatedabout 20 hours ago
Readme

ComfyUI-Unlimited-SVG

Turn a raster image into editable SVG paths with Baidu Unlimited-SVG. This fork of NidAll’s node pack adds an INT8 DP4A kernel.

With INT8 quantization and our optimized ComfyUI implementation, we measured a 10.3× speedup .

| Original JPEG | SVG drawing sequence | | --- | --- | | <img src="assets/papercraft-koi.jpg" width="440" alt="Girl flying a paper carp kite above golden terraced fields"> | <img src="assets/papercraft-koi.gif" width="440" alt="Animation showing the SVG landscape, girl and kite appearing in drawing order"> |

Download the example workflow · Source JPEG · Editable SVG

Install

Choose one installation method. This extension shares six node IDs with the NidAll pack, so enable only one copy at a time.

Option 1 — Manual installation

  1. Download this repository and place its contents in ComfyUI/custom_nodes/ComfyUI-Unlimited-SVG/.

  2. Install requirements.txt with the Python interpreter that runs ComfyUI. For Windows portable, run the following from the portable installation directory:

    .\python_embeded\python.exe -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-Unlimited-SVG\requirements.txt
    

Option 2 — ComfyUI Manager

  1. Open Manager in ComfyUI and search the custom node catalog for comfyui-unlimited-svg.
  2. Select ComfyUI-Unlimited-SVG by einhorn13 and click Install. If the pack is still pending review and does not appear in Manager, use the manual method above. Registry listing

Finish setup for either method

To generate SVGs from images, download unlimited-svg-int8.safetensors and place it in ComfyUI/models/unlimited_svg/. Restart ComfyUI to load the extension.

Model

All generation workflows use unlimited-svg-int8, our single-file INT8 ConvRot quantization of Baidu Unlimited-SVG. It includes the tokenizer, a quantized output head and padded ConvRot-256 expert projections.

Workflows

Drag a workflow JSON onto the ComfyUI canvas. For image inputs, upload your raster in Load Image.

| Workflow | What it does | | --- | --- | | Basic image to SVG | Vectorize an image at the native 2048 encoder resolution and temperature 0, then inspect decoding speed. | | Technical drawing | Trace a diagram at temperature 0, clean its coordinates and compare the render with the input. | | Clean and split an SVG | Click Open SVG file in SVG source or paste markup, then run to save geometry and text as separate SVGs and preview the alpha mask. This workflow needs no model. |

CUDA allocator warnings

If your console repeatedly prints Attempting uncaptured free of a captured allocation, add --disable-cuda-malloc to your usual ComfyUI launch command and restart. If the command already includes --cuda-malloc, replace it with --disable-cuda-malloc. This selects PyTorch's native allocator for the whole ComfyUI process. CUDA graphs remain available.

For a standard installation:

python main.py --disable-cuda-malloc

Credits

Built on NidAll’s native ComfyUI implementation and Baidu’s Unlimited-SVG model. See LICENSE and NOTICE for the code license and upstream attributions.