explaingit

ruwwww/comfyui-speed

25PythonAudience · researcherComplexity · 4/5ActiveSetup · moderate

TLDR

A ComfyUI custom node that implements Spectral Progressive Diffusion, sampling at lower resolutions first and growing the image to cut generation time on the Anima model.

Mindmap

mindmap
  root((ComfyUI-SPEED))
    Inputs
      Base sampler choice
      Start and mid scale
      Transition steps
      Taper width
    Outputs
      Generated image latent
      Faster sampler runs
    Use Cases
      Speed up Anima generation
      Swap into ComfyUI workflows
      Compare solvers on the same prompt
    Tech Stack
      Python
      ComfyUI
      PyTorch
      Diffusion samplers

Things people build with this

USE CASE 1

Replace the default sampler in a ComfyUI workflow with the SPEED node for faster Anima inference

USE CASE 2

Experiment with start_scale, mid_scale, and transition values to trade speed against artifacts

USE CASE 3

Compare progressive resolution sampling against a baseline euler sampler on the same prompt

USE CASE 4

Tune the cosine taper to reduce ringing at resolution transitions

Tech stack

PythonComfyUIPyTorchDiffusion

Getting it running

Difficulty · moderate Time to first run · 30min

Requires a working ComfyUI install with a GPU, and has only been tested with the Anima model.

In plain English

This project is an add-on for ComfyUI, a node-based tool people use to generate images from AI models. The add-on implements an idea called SPEED, which stands for Spectral Progressive Diffusion. The point of SPEED is to make image generation faster by starting at a lower resolution and growing the image during the generation process instead of working at full size from the beginning. The author says the implementation has only been tested on a model called Anima. The README marks the project as vibecoded, which the author uses as a warning that the code is experimental and may have rough edges. It links to the original research project page, a paper PDF, and an arXiv listing for the underlying method. A comparison table shows the SPEED sampler running in about 14.55 seconds against a baseline of 26.51 seconds with the standard euler sampler on the same setup, so roughly 1.82 times faster in that example. To use it, you drop the folder into ComfyUI's custom_nodes directory, restart ComfyUI, and then connect the new Sampler SPEED node into a workflow in the same way as any other sampler. The node exposes several inputs. base_sampler picks the underlying solver, with options like euler, heun, dpmpp_2m, and others. start_scale and mid_scale set the two intermediate resolutions, for example 0.5 and 0.75 of the final size. transition_1 and transition_2 control when the generation jumps to those bigger sizes. A taper value softens the seam between resolution steps to reduce ringing. The author warns that visible artifacts can appear depending on model and prompt, and that combining the node with torch.compile actually made things slower in their tests. Credit is given to the original paper authors and to a contributor who added the pluggable sampler dispatch and the cosine taper. The repository has 20 stars and is written in Python.

Copy-paste prompts

Prompt 1
Install ComfyUI-SPEED under custom_nodes and wire the Sampler SPEED node into my existing Anima workflow
Prompt 2
Set base_sampler to dpmpp_2m with start_scale 0.5 and mid_scale 0.75 and benchmark against plain euler
Prompt 3
Help me find taper and transition values that reduce DCT seam ringing for a portrait prompt
Prompt 4
Explain why torch.compile slowed down sampling here and what alternatives I can try
Prompt 5
Adapt this SPEED node to work with a non-Anima diffusion model and tell me which assumptions break
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.