ComfyUI > Nodes > ComfyUI_OmniGen_Nodes > OmniGen Sampler (set)

ComfyUI Node: OmniGen Sampler (set)

Class Name

setOmniGenSampler

Category
OmniGen
Author
set-soft (Account age: 3451days)
Extension
ComfyUI_OmniGen_Nodes
Latest Updated
2026-02-13
Github Stars
0.04K

How to Install ComfyUI_OmniGen_Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_OmniGen_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_OmniGen_Nodes 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

OmniGen Sampler (set) Description

The `setOmniGenSampler` node fine-tunes image generation parameters in the OmniGen framework.

OmniGen Sampler (set):

The setOmniGenSampler node is designed to facilitate the sampling process within the OmniGen framework, a tool used for generating and processing images using AI models. This node acts as a bridge between the model and the image generation process, allowing you to fine-tune various parameters to achieve desired results. By leveraging the capabilities of the OmniGen V1 model, this node enables you to encode images using a specified VAE (Variational Autoencoder) and apply different levels of guidance and steps to control the output. The primary goal of the setOmniGenSampler is to provide a flexible and efficient way to generate high-quality latent representations of images, which can then be further processed or decoded into final images. This node is particularly beneficial for AI artists looking to explore creative possibilities by adjusting parameters such as guidance scales, steps, and seed values to influence the artistic style and content of the generated images.

OmniGen Sampler (set) Input Parameters:

vae

The vae parameter specifies the Variational Autoencoder (VAE) used to encode the images. This is crucial for transforming images into a latent space representation, which is a compact and efficient way to handle image data. The VAE helps in maintaining the quality and details of the images during the encoding process.

model

The model parameter refers to the OmniGen V1 model, which is the core AI model used for generating images. This model is responsible for interpreting the input data and producing the latent representations that can be decoded into images. It is essential for ensuring that the generated images align with the desired artistic style and content.

conditioner

The conditioner parameter is used to provide additional conditioning information to the model. This can include various types of data or constraints that guide the model in generating images that meet specific criteria or styles.

guidance_scale

The guidance_scale parameter is a floating-point value that influences the strength of the guidance applied during the image generation process. It ranges from 1.0 to 5.0, with a default value of 2.5. A higher guidance scale can lead to more pronounced adherence to the conditioning information, while a lower scale allows for more creative freedom.

img_guidance_scale

The img_guidance_scale parameter is similar to guidance_scale but specifically affects the image guidance aspect. It ranges from 1.0 to 2.0, with a default value of 1.6. This parameter helps in balancing the influence of the image guidance on the final output, allowing for fine-tuning of the image's adherence to the input conditions.

steps

The steps parameter is an integer that determines the number of steps taken during the sampling process. It ranges from 1 to 100, with a default value of 25. More steps can lead to higher quality and more detailed images, but may also increase the computation time.

use_kv_cache

The use_kv_cache parameter is a boolean that, when enabled, allows the use of a key-value cache to speed up the inference process. However, it may slow down convergence. This option requires CUDA support and is useful for optimizing performance during image generation.

seed

The seed parameter is an integer used to initialize the random number generator for the sampling process. It ranges from 0 to 1e18, with a default value of 0. Using a specific seed ensures reproducibility of the generated images, allowing you to achieve consistent results across different runs.

OmniGen Sampler (set) Output Parameters:

latent

The latent output parameter represents the latent space representation of the generated image. This is a compact and efficient form of the image data, which can be further processed or decoded into a final image. The latent representation is crucial for maintaining the quality and details of the image while allowing for efficient storage and manipulation.

OmniGen Sampler (set) Usage Tips:

  • Experiment with different guidance_scale and img_guidance_scale values to find the right balance between adherence to conditioning information and creative freedom in the generated images.
  • Use the steps parameter to control the quality and detail of the output. More steps can lead to better results but may require more computation time.
  • Enable use_kv_cache if you have CUDA support and need to speed up the inference process, but be aware that it might affect convergence speed.
  • Set a specific seed value to ensure reproducibility of your results, which is useful for comparing different parameter settings or sharing your work with others.

OmniGen Sampler (set) Common Errors and Solutions:

"CUDA support required for K/V cache"

  • Explanation: This error occurs when the use_kv_cache option is enabled, but the system does not have CUDA support.
  • Solution: Ensure that your system has CUDA installed and properly configured. If CUDA is not available, disable the use_kv_cache option.

"Invalid guidance scale value"

  • Explanation: This error indicates that the guidance_scale or img_guidance_scale value is outside the allowed range.
  • Solution: Check the input values for guidance_scale and img_guidance_scale and ensure they are within the specified ranges (1.0 to 5.0 for guidance_scale and 1.0 to 2.0 for img_guidance_scale).

"Model not loaded"

  • Explanation: This error occurs when the OmniGen model is not properly loaded before running the sampler.
  • Solution: Make sure that the OmniGen model is correctly loaded using the setOmniGenLoader node before executing the sampler.

OmniGen Sampler (set) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_OmniGen_Nodes
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.

OmniGen Sampler (set)