SigmoidOffsetScheduler:
The SigmoidOffsetScheduler is a specialized node designed to manage the scheduling of sigma values during the sampling process in AI models. It leverages a sigmoid function to create a smooth transition of sigma values, which are crucial in controlling the noise levels during the denoising process of model sampling. This scheduler is particularly beneficial for achieving a more controlled and gradual transition between different noise levels, allowing for more refined and precise sampling results. By adjusting the steepness and offset of the sigmoid curve, users can influence the timing and intensity of the denoising process, making it a versatile tool for customizing the sampling behavior to suit specific artistic or technical needs.
SigmoidOffsetScheduler Input Parameters:
model
The model parameter refers to the AI model that will be used for sampling. It is a required input and serves as the foundation upon which the scheduling of sigma values is applied. This parameter ensures that the scheduler has access to the model's sampling capabilities, allowing it to generate the appropriate sigma values for the denoising process.
steps
The steps parameter determines the number of steps in the sampling process. It directly impacts the granularity of the sigma schedule, with more steps providing a finer resolution. The minimum value is 1, the maximum is 10000, and the default is 30. Adjusting this parameter allows you to control the duration and detail of the sampling process, with higher values leading to more detailed transitions.
square_k
The square_k parameter controls the steepness of the sigmoid curve used in the scheduling process. It is a floating-point value with a default of 1.0, a minimum of 0.0, and a maximum of 5.0. This parameter influences how quickly the transition between low and high sigma values occurs, with higher values resulting in a steeper curve and a more abrupt transition.
base_c
The base_c parameter is a control parameter that shifts the sigmoid curve along the x-axis. It is a floating-point value with a default of 0.5, a minimum of -5.0, and a maximum of 5.0. This parameter allows you to adjust the balance between early and late denoising, with values less than 0.5 favoring early denoising and values greater than 0.5 favoring late denoising. It provides flexibility in tailoring the denoising process to specific artistic goals.
SigmoidOffsetScheduler Output Parameters:
SIGMAS
The SIGMAS output parameter represents the sequence of sigma values generated by the scheduler. These values are crucial for controlling the noise levels during the denoising process in model sampling. The output is a tensor of sigma values that dictate the progression of noise reduction, allowing for a smooth and controlled transition that enhances the quality and precision of the sampling results.
SigmoidOffsetScheduler Usage Tips:
- Experiment with the
square_kparameter to achieve the desired steepness in the transition of sigma values. A higher value will result in a more pronounced change, which can be useful for specific artistic effects. - Use the
base_cparameter to fine-tune the timing of the denoising process. Adjusting this value can help you achieve a balance between early and late denoising, depending on the specific requirements of your project.
SigmoidOffsetScheduler Common Errors and Solutions:
"model_sampling object must have a 'sigmas' attribute with at least two values."
- Explanation: This error occurs when the model provided does not have a valid
sigmasattribute or the attribute contains fewer than two values. - Solution: Ensure that the model you are using has a properly defined
sigmasattribute with at least two values. Check the model's configuration and ensure it is compatible with the scheduler.
"Sigmoid scheduler called with steps=0. Returning minimal schedule."
- Explanation: This warning is triggered when the
stepsparameter is set to zero or a negative value, which is not valid for the scheduling process. - Solution: Adjust the
stepsparameter to a positive integer value to ensure a valid and effective scheduling process.
