ComfyUI  >  Nodes  >  ComfyUI >  BetaSamplingScheduler

ComfyUI Node: BetaSamplingScheduler

Class Name

BetaSamplingScheduler

Category
sampling/custom_sampling/schedulers
Author
ComfyAnonymous (Account age: 598 days)
Extension
ComfyUI
Latest Updated
8/12/2024
Github Stars
45.9K

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
  • 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

BetaSamplingScheduler Description

Generate custom sigma sampling schedules using beta distribution for AI models, enhancing sample quality and characteristics.

BetaSamplingScheduler:

The BetaSamplingScheduler is a specialized node designed to generate a sequence of sigma values for sampling in AI models, particularly useful in diffusion models. This node leverages the beta distribution to create a custom schedule for sigma values, which can significantly influence the quality and characteristics of the generated samples. By adjusting the alpha and beta parameters, you can control the shape of the beta distribution, allowing for fine-tuned sampling schedules that can enhance the performance and output of your AI models. This node is particularly beneficial for AI artists looking to experiment with different sampling techniques to achieve unique and high-quality results.

BetaSamplingScheduler Input Parameters:

model

This parameter expects a model object that the scheduler will use to generate sigma values. The model should be compatible with the sampling process and provide the necessary sigma values for the scheduler to operate.

steps

This integer parameter defines the number of steps for the sampling process. It determines how many sigma values will be generated. The default value is 20, with a minimum of 1 and a maximum of 10,000. Adjusting the number of steps can impact the granularity and smoothness of the sampling process.

alpha

This float parameter controls the alpha value of the beta distribution used in the scheduler. It influences the shape of the distribution, affecting how sigma values are spread across the steps. The default value is 0.6, with a range from 0.0 to 50.0. Fine-tuning this parameter can help achieve the desired sampling characteristics.

beta

This float parameter controls the beta value of the beta distribution used in the scheduler. Similar to the alpha parameter, it affects the shape of the distribution and the spread of sigma values. The default value is 0.6, with a range from 0.0 to 50.0. Adjusting this parameter allows for further customization of the sampling schedule.

BetaSamplingScheduler Output Parameters:

SIGMAS

The output of this node is a sequence of sigma values, represented as a tensor. These sigma values are used in the sampling process of the model, influencing the generation of samples. The sequence of sigmas is crucial for controlling the noise levels at each step of the sampling process, ultimately affecting the quality and characteristics of the generated output.

BetaSamplingScheduler Usage Tips:

  • Experiment with different alpha and beta values to see how they affect the sampling schedule and the quality of the generated samples.
  • Use a higher number of steps for more detailed and smoother sampling, but be mindful of the increased computational cost.
  • Combine this scheduler with other custom sampling techniques to explore a wide range of artistic effects and styles.

BetaSamplingScheduler Common Errors and Solutions:

ValueError: Model object is not compatible

  • Explanation: This error occurs when the provided model object does not support the required sampling methods.
  • Solution: Ensure that the model object passed to the scheduler is compatible and provides the necessary sigma values for sampling.

RuntimeError: Steps value out of range

  • Explanation: This error happens when the steps parameter is set outside the allowed range (1 to 10,000).
  • Solution: Adjust the steps parameter to be within the valid range, ensuring it is between 1 and 10,000.

TypeError: Alpha or Beta value is not a float

  • Explanation: This error occurs when the alpha or beta parameters are not provided as float values.
  • Solution: Ensure that both alpha and beta parameters are specified as floats, within the range of 0.0 to 50.0.

BetaSamplingScheduler Related Nodes

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