ComfyUI  >  Nodes  >  ComfyUI >  Conditioning (Set Area with Percentage)

ComfyUI Node: Conditioning (Set Area with Percentage)

Class Name

ConditioningSetAreaPercentage

Category
conditioning
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

Conditioning (Set Area with Percentage) Description

Node for specifying conditioning area within an image using percentage values for width, height, x, and y coordinates.

Conditioning (Set Area with Percentage):

The ConditioningSetAreaPercentage node is designed to allow you to specify a conditioning area within an image using percentage values for the width, height, x, and y coordinates. This node is particularly useful when you want to apply conditioning to a specific region of an image, defined as a percentage of the total image dimensions. By using this node, you can precisely control the area of interest and the strength of the conditioning effect, making it a powerful tool for tasks that require localized adjustments or enhancements. The main goal of this node is to provide flexibility and precision in defining conditioning areas, enabling more targeted and effective image processing.

Conditioning (Set Area with Percentage) Input Parameters:

conditioning

This parameter represents the initial conditioning data that you want to modify. It is a required input and serves as the base upon which the new conditioning values will be set.

width

This parameter specifies the width of the conditioning area as a percentage of the total image width. The value ranges from 0 to 1.0, with a default of 1.0. Adjusting this value will change the width of the area where the conditioning is applied.

height

This parameter specifies the height of the conditioning area as a percentage of the total image height. The value ranges from 0 to 1.0, with a default of 1.0. Adjusting this value will change the height of the area where the conditioning is applied.

x

This parameter specifies the x-coordinate of the top-left corner of the conditioning area as a percentage of the total image width. The value ranges from 0 to 1.0, with a default of 0. Adjusting this value will move the conditioning area horizontally within the image.

y

This parameter specifies the y-coordinate of the top-left corner of the conditioning area as a percentage of the total image height. The value ranges from 0 to 1.0, with a default of 0. Adjusting this value will move the conditioning area vertically within the image.

strength

This parameter controls the strength of the conditioning effect applied to the specified area. The value ranges from 0.0 to 10.0, with a default of 1.0. Higher values will result in a stronger conditioning effect.

Conditioning (Set Area with Percentage) Output Parameters:

conditioning

The output is the modified conditioning data with the specified area and strength adjustments applied. This output can be used in subsequent nodes or processes to achieve the desired image conditioning effects.

Conditioning (Set Area with Percentage) Usage Tips:

  • Use the width and height parameters to precisely define the area of the image you want to condition, ensuring that the values are set as percentages of the total image dimensions.
  • Adjust the x and y parameters to position the conditioning area exactly where you need it within the image.
  • Experiment with different strength values to find the optimal level of conditioning effect for your specific use case.

Conditioning (Set Area with Percentage) Common Errors and Solutions:

"Invalid conditioning data"

  • Explanation: This error occurs when the input conditioning data is not in the expected format or is missing.
  • Solution: Ensure that the conditioning input is correctly formatted and provided as required.

"Width or height percentage out of range"

  • Explanation: This error occurs when the width or height values are set outside the allowed range of 0 to 1.0.
  • Solution: Adjust the width and height values to be within the range of 0 to 1.0.

"Strength value out of range"

  • Explanation: This error occurs when the strength value is set outside the allowed range of 0.0 to 10.0.
  • Solution: Adjust the strength value to be within the range of 0.0 to 10.0.

Conditioning (Set Area with Percentage) 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.