Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > SpectrumKSampler > SpectrumKSamplerModGuidance

ComfyUI Node: SpectrumKSamplerModGuidance

Class Name

SpectrumKSamplerModGuidance

Category
sampling
Author
sorryhyun (Account age: 2225days)
Extension
SpectrumKSampler
Latest Updated
2026-06-24
Github Stars
0.02K

How to Install SpectrumKSampler

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

SpectrumKSamplerModGuidance Description

Enhance sampling with modulation guidance for precise image generation in Spectrum KSampler framework.

SpectrumKSamplerModGuidance:

The SpectrumKSamplerModGuidance node is a sophisticated tool designed to enhance the sampling process by integrating modulation guidance into the Spectrum KSampler framework. This node is particularly beneficial for AI artists looking to achieve high-quality image generation with nuanced control over the sampling process. By leveraging modulation guidance, it allows for the fine-tuning of quality attributes, enabling users to steer the sampling direction based on specific quality tags. This results in more precise and desirable outputs, making it an essential component for those seeking to push the boundaries of creative AI applications. The node operates by adjusting the sampling process through a series of parameters that control the influence of modulation guidance across different layers of the model, ensuring that the generated images align closely with the desired artistic vision.

SpectrumKSamplerModGuidance Input Parameters:

model

The model parameter specifies the AI model to be used for the sampling process. It is crucial as it determines the underlying architecture and capabilities that will be leveraged during sampling. There are no specific minimum or maximum values, but it should be a compatible model with the Spectrum KSampler framework.

seed

The seed parameter is used to initialize the random number generator, ensuring reproducibility of results. By setting a specific seed, you can generate the same output consistently. It typically accepts integer values, with no strict minimum or maximum, but should be chosen based on the desired level of randomness or consistency.

steps

This parameter defines the number of steps to be taken during the sampling process. More steps generally lead to higher quality outputs, as the model has more opportunities to refine the image. The minimum value is typically 1, with higher values leading to longer processing times but potentially better results.

cfg

The cfg parameter, or classifier-free guidance, controls the strength of guidance applied during sampling. It influences how much the model adheres to the provided prompts or conditions. A higher cfg value results in stronger adherence to the prompts, while a lower value allows for more creative freedom. The typical range is from 0 to a higher value like 10, depending on the desired level of guidance.

sampler_name

This parameter specifies the name of the sampler to be used. It determines the sampling algorithm that will be applied, affecting the style and characteristics of the output. The options available depend on the implementation within the Spectrum KSampler framework.

scheduler

The scheduler parameter dictates the scheduling strategy for the sampling process. It affects how the steps are distributed over time, influencing the convergence and quality of the output. The specific options depend on the framework's implementation.

positive

The positive parameter is a set of conditions or prompts that guide the sampling process towards desired attributes. It helps in steering the output towards specific qualities or features, enhancing the alignment with the user's artistic vision.

negative

Conversely, the negative parameter specifies conditions or prompts that the sampling process should avoid. It helps in steering the output away from undesired attributes, ensuring that the final result does not include unwanted features.

latent_image

This parameter provides an initial latent image to start the sampling process. It serves as a starting point for the model to refine and generate the final output. The latent image should be compatible with the model's input requirements.

denoise

The denoise parameter controls the level of noise reduction applied during sampling. A higher value results in smoother outputs, while a lower value retains more of the original noise, which can be desirable for certain artistic effects. The typical range is from 0 to 1.

window_size

This parameter defines the size of the window used during the sampling process. It affects the scope of the model's attention at each step, influencing the level of detail and coherence in the output. The value should be chosen based on the desired balance between detail and global coherence.

flex_window

The flex_window parameter allows for dynamic adjustment of the window size during sampling. It provides flexibility in how the model's attention is distributed, enabling more adaptive and context-aware sampling. The typical range is from 0 to 1.

warmup_steps

This parameter specifies the number of initial steps used to warm up the model before the main sampling process begins. It helps in stabilizing the model's performance, leading to more consistent and high-quality outputs. The minimum value is typically 0, with higher values providing more stabilization.

blend_w

The blend_w parameter controls the blending weight applied during sampling. It influences how different components or layers are combined, affecting the overall style and characteristics of the output. The typical range is from 0 to 1.

cheby_degree

This parameter specifies the degree of the Chebyshev polynomial used in the sampling process. It affects the mathematical transformations applied, influencing the smoothness and complexity of the output. The minimum value is typically 1, with higher values leading to more complex transformations.

ridge_lambda

The ridge_lambda parameter controls the regularization strength in the sampling process. It helps in preventing overfitting and ensures that the output remains stable and consistent. The typical range is from 0 to 1, with higher values providing stronger regularization.

dcw_mode

This parameter specifies the mode of the dynamic contrast weighting applied during sampling. It affects how contrast adjustments are made, influencing the visual impact and clarity of the output. The options available depend on the framework's implementation.

dcw_lambda

The dcw_lambda parameter controls the strength of the dynamic contrast weighting. It influences the degree of contrast adjustments applied, affecting the overall visual appeal and clarity of the output. The typical range is from 0 to 1.

dcw_band_mask

This parameter specifies the band mask used for dynamic contrast weighting. It determines which frequency bands are affected by contrast adjustments, influencing the distribution of contrast across the output. The options available depend on the framework's implementation.

dcw_calibrator

The dcw_calibrator parameter provides a calibration reference for dynamic contrast weighting. It helps in ensuring that contrast adjustments are applied consistently and accurately, leading to more visually appealing outputs.

clip

The clip parameter controls the clipping of values during sampling. It helps in preventing extreme values that could lead to artifacts or undesirable features in the output. The typical range is from 0 to 1, with higher values providing stronger clipping.

smc_cfg_alpha

This parameter specifies the alpha value for the SMC (Sequential Monte Carlo) configuration. It influences the balance between exploration and exploitation during sampling, affecting the diversity and quality of the output. The typical range is from 0 to 1.

smc_cfg_lambda

The smc_cfg_lambda parameter controls the lambda value for the SMC configuration. It influences the strength of the guidance applied during sampling, affecting the adherence to the provided prompts or conditions. The typical range is from 0 to 1.

cfgpp_lambda

This parameter specifies the lambda value for the CFG++ (Classifier-Free Guidance Plus Plus) configuration. It influences the strength of the enhanced guidance applied during sampling, affecting the alignment with the user's artistic vision. The typical range is from 0 to 1.

fsg

The fsg parameter is a boolean flag that enables or disables the FSG (Frequency Spectrum Guidance) during sampling. It affects how frequency-based adjustments are made, influencing the style and characteristics of the output.

fsg_band_lo

This parameter specifies the lower bound of the frequency band used for FSG. It determines the range of frequencies affected by guidance, influencing the distribution of features across the output. The typical range is from 0 to 1.

fsg_band_hi

The fsg_band_hi parameter specifies the upper bound of the frequency band used for FSG. It determines the range of frequencies affected by guidance, influencing the distribution of features across the output. The typical range is from 0 to 1.

fsg_k

This parameter specifies the k value for the FSG configuration. It influences the strength and scope of frequency-based adjustments, affecting the style and characteristics of the output. The typical range is from 0 to a higher value like 10.

fsg_d_sigma

The fsg_d_sigma parameter controls the sigma value for the FSG configuration. It influences the smoothness and coherence of frequency-based adjustments, affecting the overall style and characteristics of the output. The typical range is from 0 to 1.

fsg_gamma

This parameter specifies the gamma value for the FSG configuration. It influences the intensity and impact of frequency-based adjustments, affecting the overall style and characteristics of the output. The typical range is from 0 to 1.

SpectrumKSamplerModGuidance Output Parameters:

LATENT

The output parameter LATENT represents the latent space representation of the generated image. This output is crucial as it encapsulates the model's understanding and interpretation of the input prompts and conditions, serving as the foundation for the final image. The latent representation can be further processed or decoded to produce the final visual output, making it an essential component for AI artists seeking to refine and iterate on their creative works.

SpectrumKSamplerModGuidance Usage Tips:

  • Experiment with different cfg values to find the right balance between adherence to prompts and creative freedom, depending on your artistic goals.
  • Utilize the seed parameter to ensure reproducibility of results, especially when fine-tuning parameters for specific outputs.
  • Adjust the steps parameter to control the quality and detail of the output, with more steps generally leading to higher quality images.
  • Use the positive and negative parameters to guide the sampling process towards desired attributes and away from unwanted features, respectively.
  • Leverage the fsg parameter to enable frequency-based adjustments, which can add unique stylistic elements to your outputs.

SpectrumKSamplerModGuidance Common Errors and Solutions:

RuntimeError: Model missing model_channels

  • Explanation: This error occurs when the model being used does not have the required model_channels attribute, which is necessary for the modulation guidance process.
  • Solution: Ensure that the model you are using is compatible with the Spectrum KSampler framework and includes the model_channels attribute. If necessary, update or replace the model with a compatible version.

ValueError: Adapter weight shape mismatch

  • Explanation: This error indicates a mismatch between the shape of the adapter weights and the expected model channels, which can disrupt the modulation guidance process.
  • Solution: Verify that the adapter being used is compatible with the model's architecture. Check the adapter's weight shape and ensure it matches the model's expected input dimensions. If needed, adjust the adapter or select a different one that aligns with the model's requirements.

SpectrumKSamplerModGuidance Related Nodes

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

SpectrumKSamplerModGuidance