ComfyUI  >  Nodes  >  ComfyUI_Mira >  Steps & Cfg

ComfyUI Node: Steps & Cfg

Class Name

StepsAndCfg

Category
Mira/Numeral
Author
mirabarukaso (Account age: 1261 days)
Extension
ComfyUI_Mira
Latest Updated
7/25/2024
Github Stars
0.0K

How to Install ComfyUI_Mira

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

Steps & Cfg Description

Manage and configure steps and CFG scale for AI art generation, fine-tuning iterative image generation process.

Steps & Cfg:

The StepsAndCfg node is designed to provide a straightforward way to manage and configure the number of steps and the configuration (CFG) scale for your AI art generation process. This node is particularly useful for fine-tuning the iterative process of generating images, allowing you to control the granularity and the influence of the conditioning on the output. By adjusting these parameters, you can achieve a balance between the quality and the computational efficiency of your art generation, making it a valuable tool for both novice and experienced AI artists.

Steps & Cfg Input Parameters:

steps

The steps parameter defines the number of iterations the model will go through during the image generation process. A higher number of steps generally results in more refined and detailed images, but it also increases the computation time. The minimum value for this parameter is 1, ensuring that at least one iteration is performed. The default value is set to 22, which provides a good balance between quality and performance for most use cases. You can adjust this value in increments of 1 to suit your specific needs.

cfg

The cfg parameter stands for Configuration Scale, which controls the strength of the conditioning applied to the model during the generation process. A higher CFG value means that the model will adhere more strictly to the given conditions, such as prompts or other inputs, potentially leading to more accurate but less diverse outputs. The minimum value for this parameter is 1.0, and the default value is set to 8.0. You can adjust this value in increments of 0.01 to fine-tune the influence of the conditioning on the generated images.

Steps & Cfg Output Parameters:

STEPS

The STEPS output parameter returns the number of steps that were set for the image generation process. This value is crucial for understanding the level of detail and refinement applied during the generation. It helps you keep track of the computational effort and the expected quality of the output.

CFG

The CFG output parameter returns the configuration scale value that was set. This value indicates the strength of the conditioning applied to the model, helping you understand how strictly the model adhered to the given conditions. It is essential for evaluating the influence of the conditioning on the final output.

Steps & Cfg Usage Tips:

  • Adjust the steps parameter to find a balance between image quality and computation time. Start with the default value and increase it if you need more detail.
  • Use the cfg parameter to control the adherence to your prompts or conditions. A higher value will make the model follow the conditions more strictly, which can be useful for specific artistic effects.

Steps & Cfg Common Errors and Solutions:

"Invalid value for steps: must be an integer greater than or equal to 1"

  • Explanation: This error occurs when the steps parameter is set to a non-integer value or a value less than 1. - Solution: Ensure that the steps parameter is an integer and is set to at least 1.

"Invalid value for cfg: must be a float between 1.0 and 100.0"

  • Explanation: This error occurs when the cfg parameter is set to a value outside the allowed range or is not a float.
  • Solution: Ensure that the cfg parameter is a float and is set between 1.0 and 100.0. Adjust the value in increments of 0.01 if needed.

Steps & Cfg Related Nodes

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