ComfyUI > Nodes > ComfyUI-Omini-Kontext > Omini Kontext Reference Encoder

ComfyUI Node: Omini Kontext Reference Encoder

Class Name

OminiKontextReferenceEncoder

Category
OminiKontext
Author
tercumantanumut (Account age: 1003days)
Extension
ComfyUI-Omini-Kontext
Latest Updated
2025-08-13
Github Stars
0.06K

How to Install ComfyUI-Omini-Kontext

Install this extension via the ComfyUI Manager by searching for ComfyUI-Omini-Kontext
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Omini-Kontext 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Omini Kontext Reference Encoder Description

Specialized node in ComfyUI for encoding reference images with positional adjustments using Omini Kontext pipeline.

Omini Kontext Reference Encoder:

The OminiKontextReferenceEncoder is a specialized node within the ComfyUI framework designed to encode reference images with positional adjustments using the Omini Kontext pipeline. This node is particularly useful for scenarios where you need to incorporate spatial transformations into the encoding process, allowing for more dynamic and context-aware image processing. By encoding reference images with specified position deltas, this node enables you to manipulate the spatial attributes of the image data, which can be crucial for tasks that require precise control over image positioning and orientation. The primary goal of this node is to provide a flexible and efficient way to encode images while considering their spatial context, making it an essential tool for AI artists looking to enhance their creative workflows with advanced image processing capabilities.

Omini Kontext Reference Encoder Input Parameters:

pipeline

The pipeline parameter specifies the Omini Kontext pipeline to be used for encoding the reference image. This parameter is crucial as it determines the underlying processing framework that will handle the image encoding. The pipeline is expected to be compatible with the Omini Kontext architecture, ensuring that the encoding process is optimized for the specific requirements of the task.

reference_image

The reference_image parameter is the image that you wish to encode. This image serves as the primary input for the encoding process, and its content will be transformed into a latent representation. The image should be provided in a format compatible with ComfyUI, typically as a tensor with dimensions [B, H, W, C] where B is the batch size, H is the height, W is the width, and C is the number of channels.

delta_x

The delta_x parameter allows you to specify a positional adjustment along the x-axis for the reference image. This integer value can range from -1000 to 1000, with a default of 0. By adjusting this parameter, you can shift the encoded representation of the image horizontally, which can be useful for aligning or repositioning the image within a larger context.

delta_y

Similar to delta_x, the delta_y parameter specifies a positional adjustment along the y-axis. This integer value also ranges from -1000 to 1000, with a default of 0. Adjusting this parameter allows you to shift the encoded representation vertically, providing additional control over the spatial positioning of the image.

delta_z

The delta_z parameter specifies a positional adjustment along the z-axis, with a default value of 96 and a range from -1000 to 1000. This parameter is particularly useful for depth-related transformations, allowing you to encode the image with a sense of depth or layering, which can be critical for 3D or multi-layered image processing tasks.

Omini Kontext Reference Encoder Output Parameters:

REF_LATENT

The REF_LATENT output is the latent representation of the reference image after encoding. This output is a crucial component of the Omini Kontext pipeline, as it encapsulates the transformed image data in a format suitable for further processing or analysis. The latent representation is typically used in conjunction with other nodes to achieve complex image processing tasks.

REF_IMAGE_IDS

The REF_IMAGE_IDS output provides the encoded image IDs, which have been adjusted according to the specified positional deltas. These IDs are essential for tracking and managing the spatial attributes of the encoded image, allowing for precise control over its positioning and orientation within the processing pipeline.

Omini Kontext Reference Encoder Usage Tips:

  • To achieve optimal results, ensure that the reference_image is pre-processed and formatted correctly before encoding. This can help prevent errors and improve the quality of the encoded output.
  • Experiment with different delta_x, delta_y, and delta_z values to explore various spatial transformations and their effects on the encoded image. This can be particularly useful for creative projects that require dynamic image positioning.

Omini Kontext Reference Encoder Common Errors and Solutions:

"Invalid image format"

  • Explanation: This error occurs when the reference_image is not in the expected format or dimensions.
  • Solution: Ensure that the image is formatted as a tensor with dimensions [B, H, W, C] and that it is compatible with the ComfyUI framework.

"Pipeline not compatible"

  • Explanation: This error indicates that the specified pipeline is not compatible with the Omini Kontext architecture.
  • Solution: Verify that the pipeline is correctly configured and compatible with the Omini Kontext requirements. Consider using a pre-defined pipeline that is known to work with this node.

"Delta value out of range"

  • Explanation: This error occurs when one of the delta parameters (delta_x, delta_y, delta_z) is set outside the allowed range.
  • Solution: Adjust the delta values to be within the specified range of -1000 to 1000. Double-check the input values to ensure they are within the acceptable limits.

Omini Kontext Reference Encoder Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Omini-Kontext
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.