⚡ Quick Answer
The U-Net is the part of a diffusion modelthat does the actual work: at every generation step, it looks at the noisy image and your prompt, and predicts exactly what noise to remove. It's called a "U"-Net because of its shape — data shrinks down through layers, then expands back out, like the letter U.
You'll never load a "U-Net" by name in ComfyUI — it's built into the checkpoint file you load. But it's the piece that turns your text prompt into an actual image, one denoising step at a time.
Why the "U" Shape?
Picture the image data flowing through a series of layers. In the first half, each layer compresses the data into a smaller, more abstract summary — this is called the encoder. At the bottom of the U is the tightest, most compressed point. In the second half, called the decoder, each layer expands that summary back out to full size.
The clever part is "skip connections" — wires that carry fine detail directly from the encoder side straight across to the matching decoder layer, skipping the compressed bottleneck. This is what stops the output from looking like a blurry blob: the U-Net keeps sharp edges and small details even while reasoning about the image at a broad, compressed level.
Where You'll See It (Sort Of)
The U-Net has no dedicated node of its own — it's the largest chunk of weights packed inside the checkpoint file you load with Load Checkpoint. Every time the KSamplernode runs a step, it's the U-Net doing the noise prediction behind the scenes.
Quick Example
In SDXL, the U-Net makes up roughly 2.6 billion of the checkpoint's parameters — the single largest part of the file. Newer models like FLUX.1 and Qwen-Image swap the U-Net for a different structure called a diffusion transformer (DiT), which does the same noise-prediction job using a different internal design, generally scaling better to larger models.
Frequently Asked Questions
See It In Action
Ready to explore checkpoints and models?
See how different checkpoints put their U-Net (or transformer) to use.
Published: 2026-09-09 · Last updated: 2026-09-09
Join the discussion
Sign in to leave a comment or reply
No comments yet
Be the first to share your thoughts!
