Run ComfyUI Easily with InstaSD

Skip the complex setup and run ComfyUI online. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

SeargeSDXLSampler

SeargeSDXLSampler Node Documentation

Overview

The SeargeSDXLSampler node is part of the SeargeSDXL custom node extension for ComfyUI. This node facilitates the sampling process from latent images using both base and refiner models, specifically designed to support Stable Diffusion Extended Latent (SDXL) models. The node leverages powerful sampling techniques to convert latent images into more refined outputs, potentially enhancing the quality and detail of generated images.

Purpose

The primary function of the SeargeSDXLSampler node is to perform image generation and refinement using a two-step process:

  1. Base Sampling: This phase utilizes a base model to sample from a latent space and generate an initial image.
  2. Refiner Sampling: Subsequently, if a refiner model is provided, the node improves upon the base-generated image using additional refinement steps.

Inputs

The SeargeSDXLSampler node requires several inputs to control its behavior:

  • Base Model: The foundational model used for the initial image generation phase.
  • Base Positive/Negative Conditioning: Conditioning inputs provided to the base model that guide the positive and negative aspects of image generation.
  • Refiner Model: An optional secondary model used to refine and enhance the base-generated image.
  • Refiner Positive/Negative Conditioning: Conditioning inputs for the refiner model, structuring the refinement process for more detailed areas.
  • Latent Image: The input latent data which the sampling process aims to convert into an image.
  • Noise Seed: An integer value used to seed randomness during the sampling phase, which can help achieve reproducibility.
  • Steps: The total number of sampling steps to be used for the image generation process.
  • CFG (Classifier-Free Guidance): A float value that determines the guidance strength, effectively controlling the trade-off between adherence to conditioning and creative variation.
  • Sampler Name: Specifies the sampler algorithm to be used; for instance, "dpmpp_2m".
  • Scheduler: Describes the scheduler algorithm used to control the step sequences—common choices include "karras".
  • Base Ratio: A float determining the ratio of sampling steps allocated to the base model versus the refiner.
  • Denoise: A float value defining the level of denoising applied during sampling.

Outputs

The node produces a single output:

  • Latent: The final latent output that, after going through the defined sampling and refinement process, represents the improved generation ready for further processing or display.

Usage in ComfyUI Workflows

The SeargeSDXLSampler node is typically integrated into image synthesis workflows where users aim to generate high-quality images from latent representations. The node can be used in workflows such as:

  • Text-to-Image Workflows: To transform text-derived conditionings into refined image outputs.
  • Image-to-Image and Inpainting Workflows: Allowing existing images to be refined or selectively redrawn with precision.
  • Experimental Compositions: Facilitating artistic exploration by applying different models as base and refiner for creative outputs.

In practice, this node is positioned within a workflow after conditioning feeds and latent generation phases and before any finalization steps like decoding or display. The flexibility of inputs allows users to customize and control the output image characteristics extensively.

Special Features and Considerations

  • Dynamic CFG and Ratio: Users have absolute control over the dynamic CFG and base/refiner ratio, enabling careful tuning per desired artistic or functional output.
  • Refinement Capability: By employing a refiner model in tandem with a base model, the node can produce more comprehensive and nuanced images.
  • Ease of Use: Its integration within ComfyUI allows users to configure complex workflows visually, simplifying the attachment and adjustment of models and parameters.

By leveraging this node, users gain access to advanced sampling techniques that extend standard functionalities, providing richer, refined outputs from latent images synthesized within their workflows.

Want to try SeargeSDXL without installing anything? Run ComfyUI online on InstaSD's cloud GPUs — no setup required.