ComfyUI  >  Nodes  >  KJNodes for ComfyUI >  Custom Sigmas

ComfyUI Node: Custom Sigmas

Class Name

CustomSigmas

Category
KJNodes/noise
Author
kijai (Account age: 2192 days)
Extension
KJNodes for ComfyUI
Latest Updated
6/25/2024
Github Stars
0.3K

How to Install KJNodes for ComfyUI

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

Custom Sigmas Description

Create sigma tensor from comma-separated values for custom noise schedules in AI art, with flexible adjustments and control.

Custom Sigmas:

The CustomSigmas node is designed to create a tensor of sigma values from a string of comma-separated values. This node is particularly useful for AI artists who need to generate custom noise schedules for their models. By providing a flexible way to adjust and interpolate sigma values, it allows for fine-tuning the noise levels used in various stages of the model's processing. This can be especially beneficial for optimizing the performance of models like Stable Diffusion (SD) and other similar architectures. The node also offers options to adjust the sigma values by dividing them, offsetting them, and flipping their order, providing a high degree of control over the noise schedule.

Custom Sigmas Input Parameters:

sigmas_string

This parameter takes a string of comma-separated values representing the sigma values. These values are used to create the initial tensor of sigmas. The default value is "14.615, 6.475, 3.861, 2.697, 1.886, 1.396, 0.963, 0.652, 0.399, 0.152, 0.029". This string should be formatted correctly to ensure proper parsing and conversion into a tensor.

interpolate_to_steps

This integer parameter specifies the number of steps to which the sigma values should be interpolated. The default value is 10, with a minimum of 0 and a maximum of 255. This parameter helps in adjusting the length of the sigma tensor to match the required number of steps for the model's processing.

divide_by_last_sigma

This boolean parameter determines whether the sigma values should be divided by the last sigma value in the tensor. The default value is False. When set to True, it normalizes the sigma values by the last value, which can be useful for certain types of noise schedules.

divide_by

This float parameter specifies the value by which all sigma values should be divided. The default value is 1, with a minimum of 1 and a maximum of 255. This parameter allows for scaling down the sigma values, which can be useful for fine-tuning the noise levels.

offset_by

This integer parameter determines the offset to be applied to the sigma values. The default value is 1, with a minimum of -100 and a maximum of 100. This parameter shifts the sigma values by the specified offset, allowing for more control over the noise schedule.

Custom Sigmas Output Parameters:

SIGMAS

This output parameter is a tensor of sigma values that have been adjusted based on the input parameters. The tensor is used in the model's processing to control the noise levels at different stages. The adjusted sigma values can significantly impact the model's performance and the quality of the generated outputs.

sigmas_string

This output parameter is a string representation of the adjusted sigma values. It provides a convenient way to visualize and verify the sigma values after they have been processed. The string format makes it easy to copy and reuse the values in other contexts or for further adjustments.

Custom Sigmas Usage Tips:

  • Ensure that the sigmas_string is correctly formatted with comma-separated values to avoid parsing errors.
  • Use the interpolate_to_steps parameter to match the sigma tensor length with the required number of steps for your model.
  • Experiment with the divide_by_last_sigma and divide_by parameters to normalize and scale the sigma values for optimal performance.
  • Adjust the offset_by parameter to shift the sigma values and explore different noise schedules.

Custom Sigmas Common Errors and Solutions:

"Invalid sigma string format"

  • Explanation: The sigmas_string parameter is not correctly formatted.
  • Solution: Ensure that the sigma values are comma-separated and correctly formatted as a string.

"Interpolation steps out of range"

  • Explanation: The interpolate_to_steps parameter is set to a value outside the allowed range.
  • Solution: Set the interpolate_to_steps parameter to a value between 0 and 255.

"Division by zero error"

  • Explanation: The divide_by parameter is set to 0, causing a division by zero.
  • Solution: Ensure that the divide_by parameter is set to a value greater than 0.

"Offset out of range"

  • Explanation: The offset_by parameter is set to a value outside the allowed range.
  • Solution: Set the offset_by parameter to a value between -100 and 100.

Custom Sigmas Related Nodes

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