Model
Trends
.ai
Model
Trends
.ai
cele mai bune modele AI open source

Nodul VAE Decode în ComfyUI

VAE Decode converts the sampled LATENT into a pixel IMAGE with the VAE; VAE Decode (Tiled) does the same in tiles for very large images.
Pachet de noduri: ComfyUI core
Categorie: Latent
Această pagină nu a fost încă tradusă, așa că este afișată în engleză.

Ce face VAE Decode

Samplers work in latent space. VAE Decode is the step that turns the finished latent into real pixels, using the VAE from the checkpoint or from Load VAE. Its IMAGE output feeds Save Image, Preview Image, upscalers and any other image node.
Decoding a 1024x1024 SDXL latent takes a second or two and a couple of gigabytes of VRAM; at 2048 and above the memory grows quickly. VAE Decode (Tiled) splits the latent into overlapping tiles so any size decodes on any card, with a small risk of visible seams at very low overlap. ComfyUI falls back to tiled decoding automatically when the normal decode runs out of memory.

Intrări

Nume
Tip
Ce este
samples
LATENT
The latent from KSampler or a latent upscale node.
vae
VAE
The VAE from Load Checkpoint or Load VAE; must match the latent family.

Ieșiri

Nume
Tip
Ce este
IMAGE
IMAGE
The decoded picture for Save Image, Preview Image or further processing.
AD
Sari peste configurare: fluxuri ComfyUI preinstalate în cloud
BitVector rulează fluxuri de lucru ComfyUI gata făcute pe propriile GPU-uri. Fără instalare, fără noduri lipsă, fără casete roșii. Deschide-l pe telefon sau laptop și generează într-un minut.

Cum folosești VAE Decode

  1. Connect the KSampler LATENT to samples.
  2. Connect the checkpoint VAE (or Load VAE) to vae.
  3. Connect IMAGE to Save Image.

Setări și sfaturi

  • Use the fp16-fix VAE for SDXL to avoid black images.
  • For video models, the matching VAE Decode is the same node; Wan and Hunyuan latents decode through their own VAE file.
  • Tiled decode: tile_size 512, overlap 64 is a good default.

Depanare VAE Decode

Black image after decode

De ce se întâmplă
NaN values from an fp16 VAE overflow (classic SDXL VAE) or a broken latent from a failed sampler.

Cum se repară
Use sdxl_vae_fp16_fix or start with --fp32-vae. If the sampler produced NaNs, lower cfg or change the sampler.

Given groups=1, weight of size [...] expected input to have 4 channels, but got 16

De ce se întâmplă
The VAE family does not match the latent: an SD VAE decoding Flux latents or the reverse.

Cum se repară
Use the VAE that belongs to the model that made the latent (ae.safetensors for Flux, sdxl_vae for SDXL).

Out of memory in VAE Decode

De ce se întâmplă
The image is too large to decode at once.

Cum se repară
Use VAE Decode (Tiled) or let ComfyUI fall back automatically; reduce tile_size to 256 on small cards.

Visible grid seams in the decoded image

De ce se întâmplă
Tiled decode with too little overlap.

Cum se repară
Increase overlap to 96 or 128, or use a larger tile_size.

AD
Rulează acest flux de lucru de pe telefon
Fiecare flux de lucru de pe această pagină este preinstalat pe BitVector cu modelele și nodurile personalizate deja la locul lor. Alege unul, tastează un prompt, gata. Zero configurare, nimic de descărcat.

Întrebări despre VAE Decode

Why does decoding look slightly different from the preview?

The live preview uses the tiny TAESD decoder; the final decode uses the real VAE.

Can I skip VAE Decode?

Only if the next node takes a LATENT (latent upscale, another sampler). Anything that shows or saves pixels needs it.

Noduri conexe

Load VAE
ComfyUI core
Load VAE (VAELoader) loads a standalone VAE file from models/vae so a checkpoint with a missing or weak VAE decodes clean colours, and so split models like Flux and Wan get their decoder.
VAE Encode and VAE Encode (for Inpainting)
ComfyUI core
VAE Encode converts a pixel IMAGE into a LATENT for img2img; VAE Encode (for Inpainting) does the same while blanking the masked area so an inpainting model can repaint it.
Save Image
ComfyUI core
Save Image writes the IMAGE tensor to ComfyUI/output as a PNG, with the whole workflow embedded in the file metadata so the picture can be dragged back into ComfyUI to restore the graph.
KSampler
ComfyUI core
KSampler runs the denoising loop: it takes the model, prompts and a latent and produces the finished latent image, controlled by seed, steps, cfg, sampler, scheduler and denoise.
AD
Sătul să repari noduri? Lasă cloud-ul să o facă
BitVector menține sute de fluxuri ComfyUI instalate, actualizate și testate pe GPU-uri cloud rapide. Fără Python, fără erori CUDA, fără limite de VRAM. Funcționează din orice browser.

Mai multe noduri ComfyUI

CLIP Text Encode (Prompt)
ComfyUI core
CLIP Text Encode turns a text prompt into CONDITIONING using the model text encoder. One node holds the positive prompt, a second one the negative prompt.
ComfyUI Manager
ComfyUI-Manager
ComfyUI Manager is the extension that installs, updates and fixes custom node packs and models from inside the interface, resolves missing nodes in imported workflows and snapshots your setup.
Load Checkpoint
ComfyUI core
Load Checkpoint (CheckpointLoaderSimple) opens a .safetensors or .ckpt model file and hands out the three parts every workflow needs: the diffusion MODEL, the CLIP text encoder and the VAE.
Empty Latent Image
ComfyUI core
Empty Latent Image creates the blank latent canvas (width, height, batch_size) that text-to-image sampling starts from; dimensions must be multiples of 8 and match the model family.
Load Image
ComfyUI core
Load Image reads a picture from the ComfyUI input folder (or an upload) and outputs an IMAGE tensor plus a MASK taken from the alpha channel, the starting point for img2img, inpainting, ControlNet and IP-Adapter graphs.
Load LoRA
ComfyUI core
Load LoRA (LoraLoader) applies a LoRA file to the MODEL and CLIP with separate strengths, so a style, character or concept can be added to any checkpoint without merging.