ComfyUI > Nodes > ComfyUI-Image-Filters > Offset Latent Image

ComfyUI Node: Offset Latent Image

Class Name

OffsetLatentImage

Category
latent
Author
spacepxl (Account age: 295days)
Extension
ComfyUI-Image-Filters
Latest Updated
2024-06-22
Github Stars
0.08K

How to Install ComfyUI-Image-Filters

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Filters
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Filters in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Offset Latent Image Description

Generate custom latent image tensor with channel offsets for AI art projects.

Offset Latent Image:

The OffsetLatentImage node is designed to generate a latent image tensor with specified offsets for each channel. This node is particularly useful for AI artists who want to create custom latent images by manipulating the values of individual channels. By adjusting the offsets, you can influence the initial state of the latent image, which can be beneficial for various image generation and manipulation tasks. The primary goal of this node is to provide a flexible way to initialize latent images with specific characteristics, allowing for more controlled and creative outcomes in your AI art projects.

Offset Latent Image Input Parameters:

width

This parameter defines the width of the latent image. The width is specified in pixels and must be a multiple of 8. The minimum value is 16, the maximum value is determined by the system's maximum resolution, and the default value is 512. Adjusting the width will change the horizontal dimension of the generated latent image.

height

This parameter defines the height of the latent image. The height is specified in pixels and must be a multiple of 8. The minimum value is 16, the maximum value is determined by the system's maximum resolution, and the default value is 512. Adjusting the height will change the vertical dimension of the generated latent image.

batch_size

This parameter specifies the number of latent images to generate in a single batch. The minimum value is 1, the maximum value is 4096, and the default value is 1. Increasing the batch size will generate multiple latent images simultaneously, which can be useful for batch processing or generating variations.

offset_0

This parameter sets the offset value for the first channel of the latent image. The value is a floating-point number with a minimum of -10.0, a maximum of 10.0, and a default of 0.0. Adjusting this offset will influence the initial values in the first channel of the latent image.

offset_1

This parameter sets the offset value for the second channel of the latent image. The value is a floating-point number with a minimum of -10.0, a maximum of 10.0, and a default of 0.0. Adjusting this offset will influence the initial values in the second channel of the latent image.

offset_2

This parameter sets the offset value for the third channel of the latent image. The value is a floating-point number with a minimum of -10.0, a maximum of 10.0, and a default of 0.0. Adjusting this offset will influence the initial values in the third channel of the latent image.

offset_3

This parameter sets the offset value for the fourth channel of the latent image. The value is a floating-point number with a minimum of -10.0, a maximum of 10.0, and a default of 0.0. Adjusting this offset will influence the initial values in the fourth channel of the latent image.

Offset Latent Image Output Parameters:

LATENT

The output of this node is a latent image tensor, represented as a dictionary with a key "samples". This tensor contains the generated latent images with the specified offsets applied to each channel. The latent image can be used as input for further processing or image generation tasks, providing a customized starting point for your creative projects.

Offset Latent Image Usage Tips:

  • Experiment with different offset values for each channel to see how they affect the generated latent image. This can help you understand the impact of each channel on the final output.
  • Use larger batch sizes to generate multiple variations of latent images simultaneously, which can be useful for exploring different creative possibilities.
  • Combine this node with other latent image processing nodes to create complex and unique image generation workflows.

Offset Latent Image Common Errors and Solutions:

Latent shape mismatch: (new_shape) and (orig_shape)

  • Explanation: This error occurs when the shapes of the new and original latent images do not match.
  • Solution: Ensure that the width and height parameters are set to values that are multiples of 8 and that the batch sizes are consistent.

CUDA out of memory

  • Explanation: This error occurs when the GPU runs out of memory while generating the latent images.
  • Solution: Reduce the width, height, or batch size parameters to decrease the memory usage. Alternatively, try running the node on a system with more GPU memory.

Invalid offset value

  • Explanation: This error occurs when an offset value is set outside the allowed range of -10.0 to 10.0.
  • Solution: Ensure that all offset values are within the specified range. Adjust the values accordingly to avoid this error.

Offset Latent Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Filters
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.