Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate noisy latent images for AI art with control over parameters for flexibility and precision.
The BNK_NoisyLatentImage node is designed to generate noisy latent images, which are essential for various AI art and image generation processes. This node allows you to create a batch of latent images filled with random noise, which can be used as a starting point for further image processing or denoising tasks. By providing control over parameters such as the source of computation (CPU or GPU), seed for random number generation, dimensions of the latent images, and batch size, this node offers flexibility and precision in generating the initial noisy latent images. The primary goal of this node is to facilitate the creation of diverse and unique latent images that can be further refined or manipulated to achieve desired artistic effects.
The source
parameter determines whether the computation for generating the noisy latent images will be performed on the CPU or GPU. Choosing CPU
might be slower but can be useful if your GPU resources are limited or needed for other tasks. Selecting GPU
leverages the power of your graphics card for faster computation. The available options are CPU
and GPU
.
The seed
parameter is an integer value used to initialize the random number generator. This ensures that the noise generated is reproducible if the same seed is used again. The seed value can range from 0 to 0xffffffffffffffff, with a default value of 0. Using different seeds will result in different noise patterns, providing variability in the generated latent images.
The width
parameter specifies the width of the latent images in pixels. It determines the horizontal resolution of the generated images. The width can range from a minimum of 64 pixels to a maximum defined by MAX_RESOLUTION
, with a default value of 512 pixels. The value must be a multiple of 8, as indicated by the step size of 8.
The height
parameter specifies the height of the latent images in pixels. It determines the vertical resolution of the generated images. The height can range from a minimum of 64 pixels to a maximum defined by MAX_RESOLUTION
, with a default value of 512 pixels. Similar to the width, the value must be a multiple of 8, as indicated by the step size of 8.
The batch_size
parameter defines the number of latent images to be generated in a single batch. This allows you to create multiple noisy latent images simultaneously, which can be useful for batch processing or generating variations. The batch size can range from a minimum of 1 to a maximum of 64, with a default value of 1.
The output of the BNK_NoisyLatentImage node is a dictionary containing the key samples
, which holds the generated noisy latent images. These latent images are represented as tensors with dimensions corresponding to the specified width, height, and batch size. The noisy latent images serve as the initial input for further processing steps, such as denoising or conditioning, to create the final artistic output.
source
parameter if you have a compatible graphics card, as it significantly speeds up the noise generation process compared to the CPU.MAX_RESOLUTION
and ensure they are multiples of 8.© Copyright 2024 RunComfy. All Rights Reserved.