ComfyUI > Nodes > ComfyUI > SetFirstSigma

ComfyUI Node: SetFirstSigma

Class Name

SetFirstSigma

Category
sampling/custom_sampling/sigmas
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

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

SetFirstSigma Description

Modify sigma sequence by setting first value, enhancing control over sampling algorithms and improving output quality.

SetFirstSigma:

The SetFirstSigma node is designed to modify a sequence of sigma values, which are often used in sampling processes within AI models, by setting the first sigma value to a specified number. This node is particularly useful in scenarios where you need to initialize or adjust the starting point of a sigma sequence, which can influence the behavior of sampling algorithms. By allowing you to set the first sigma value, this node provides greater control over the sampling process, enabling you to fine-tune the initial conditions and potentially improve the quality or characteristics of the generated outputs. The primary function of this node is to clone the existing sigma sequence and replace the first value with the user-defined sigma, ensuring that the rest of the sequence remains unchanged.

SetFirstSigma Input Parameters:

sigmas

The sigmas parameter represents a sequence of sigma values that are used in the sampling process. This input is crucial as it provides the baseline sequence that will be modified by the node. The sequence is expected to be in a format that the node can clone and manipulate, ensuring that only the first value is altered while the rest of the sequence remains intact. This parameter does not have specific minimum, maximum, or default values as it is dependent on the context in which the node is used.

sigma

The sigma parameter is a floating-point number that specifies the new value for the first sigma in the sequence. This parameter allows you to set the initial condition for the sigma sequence, which can significantly impact the sampling process. The sigma parameter has a default value of 136.0, with a minimum value of 0.0 and a maximum value of 20000.0. The step size for adjusting this value is 0.001, providing fine-grained control over the initial sigma setting.

SetFirstSigma Output Parameters:

SIGMAS

The output SIGMAS is the modified sequence of sigma values, where the first value has been replaced by the user-defined sigma parameter. This output is crucial for subsequent processes that rely on the sigma sequence, as it reflects the initial condition set by the user. The rest of the sequence remains unchanged, ensuring that the overall structure and characteristics of the sigma values are preserved, except for the initial adjustment.

SetFirstSigma Usage Tips:

  • Use the sigma parameter to experiment with different starting points for your sigma sequence, which can help in achieving desired sampling characteristics or improving output quality.
  • Ensure that the sigmas input sequence is correctly formatted and contains the necessary number of values, as this will affect the node's ability to clone and modify the sequence accurately.

SetFirstSigma Common Errors and Solutions:

"IndexError: list index out of range"

  • Explanation: This error may occur if the sigmas input sequence is empty or does not contain enough elements.
  • Solution: Ensure that the sigmas input sequence is properly initialized and contains at least one element before passing it to the node.

"TypeError: 'NoneType' object is not subscriptable"

  • Explanation: This error can happen if the sigmas input is not provided or is set to None.
  • Solution: Verify that the sigmas input is correctly passed to the node and is not None. Ensure that the input is a valid sequence of sigma values.

SetFirstSigma Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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 Playground, enabling artists to harness the latest AI tools to create incredible art.