Model
Trends
.ai
Model
Trends
.ai
die besten Open-Source-KI-Modelle

Empty Latent Image-Node in ComfyUI

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.
Node-Paket: ComfyUI core
Kategorie: Latent
Diese Seite ist noch nicht übersetzt und wird deshalb auf Englisch angezeigt.

Was Empty Latent Image macht

Text-to-image needs a starting point. Empty Latent Image produces a latent tensor filled with zeros at the requested size, and KSampler adds the noise. Latent space is 8 times smaller than pixels for SD models, so a 1024x1024 image is a 128x128 latent; the node takes pixel sizes and divides for you.
Pick sizes the model was trained on: 512x512 or 512x768 for SD 1.5, 1024x1024 / 832x1216 / 1216x832 for SDXL, Pony and Illustrious. Larger first-pass sizes cause duplicated subjects; use a hires pass for more pixels. For Flux, SD3 and video models use EmptySD3LatentImage or the family-specific latent node, which has a different channel count.

Eingänge

Name
Typ
Bedeutung
width
INT
Image width in pixels, multiple of 8 (64 recommended).
height
INT
Image height in pixels, multiple of 8.
batch_size
INT
How many images to make in one run with consecutive seeds.

Ausgänge

Name
Typ
Bedeutung
LATENT
LATENT
The empty latent for KSampler latent_image.
AD
Spar dir die Einrichtung: ComfyUI-Workflows vorinstalliert in der Cloud
BitVector führt fertige ComfyUI-Workflows auf eigenen GPUs aus. Keine Installation, keine fehlenden Nodes, keine roten Kästen. Auf dem Handy oder Laptop öffnen und in einer Minute generieren.

So verwendest du Empty Latent Image

  1. Add Empty Latent Image.
  2. Set width and height for the model family (1024x1024 for SDXL).
  3. Set batch_size 1 while testing, higher once the prompt works.
  4. Connect LATENT to KSampler latent_image and keep denoise at 1.0.

Einstellungen und Tipps

  • SDXL sweet spots: 1024x1024, 896x1152, 832x1216, 1152x896, 1216x832, 1344x768.
  • SD 1.5 above 768 on the long side tends to double heads and bodies; upscale afterwards instead.
  • batch_size 4 is a cheap way to explore seeds; VRAM scales with it.
  • Width and height that are not multiples of 8 are rounded down.

Fehlerbehebung bei Empty Latent Image

Flux / SD3 / Wan produce garbage with this node

Warum es passiert
Those models use 16-channel latents; Empty Latent Image makes the 4-channel SD latent.

So behebst du es
Replace it with EmptySD3LatentImage (Flux, SD3, Qwen) or the Wan / Hunyuan empty video latent nodes.

Two heads, duplicated people or tiling patterns

Warum es passiert
The canvas is much larger than the training resolution, so the model composes several images in one.

So behebst du es
Generate at the native size and upscale with a latent or pixel hires pass.

Error: height and width must be divisible by 8

Warum es passiert
A size like 1000x700 was entered.

So behebst du es
Use multiples of 8, ideally 64 (1024, 960, 896, 832, 768).

Out of memory with a batch

Warum es passiert
batch_size multiplies the memory the sampler needs.

So behebst du es
Lower batch_size and queue several runs instead.

AD
Diesen Workflow vom Handy aus starten
Jeder Workflow auf dieser Seite ist auf BitVector vorinstalliert, mit Modellen und Custom Nodes an Ort und Stelle. Einen auswählen, Prompt eingeben, fertig. Null Einrichtung, nichts herunterladen.

Fragen zu Empty Latent Image

Can I make non-square images?

Yes, any aspect ratio within the model comfort zone. Keep the pixel count near the training size.

What does batch_size do to the seed?

Each image in the batch uses the base seed plus its index.

Verwandte Nodes

AD
Keine Lust mehr, Nodes zu reparieren? Lass es die Cloud machen
BitVector hält hunderte ComfyUI-Workflows installiert, aktuell und getestet auf schnellen Cloud-GPUs. Kein Python, keine CUDA-Fehler, keine VRAM-Grenzen. Läuft in jedem Browser.

Weitere ComfyUI-Nodes

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.
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.
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.