ComfyUI > Nodes > ComfyUI > Conditioning (Set Mask)

ComfyUI Node: Conditioning (Set Mask)

Class Name

ConditioningSetMask

Category
conditioning
Author
ComfyAnonymous (Account age: 598days)
Extension
ComfyUI
Latest Updated
2024-08-12
Github Stars
45.85K

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 Mask) Description

Enhance conditioning process by applying specified strength mask for targeted conditioning effects.

Conditioning (Set Mask):

The ConditioningSetMask node is designed to enhance the conditioning process in your AI art generation workflow by allowing you to apply a mask with a specified strength to the conditioning data. This node is particularly useful when you want to focus the conditioning effect on specific areas of your input, providing more control over the influence of the conditioning data. By using this node, you can set the area of the conditioning to either the default or the bounds of the mask, and adjust the strength of the mask's influence, enabling more precise and targeted conditioning effects.

Conditioning (Set Mask) Input Parameters:

conditioning

This parameter represents the conditioning data that you want to modify. It is a required input and typically contains the information that guides the AI in generating the desired output.

mask

The mask parameter is used to specify the mask that will be applied to the conditioning data. This mask determines which areas of the conditioning data will be affected. The mask should be provided in a format that the node can interpret, such as a tensor.

strength

The strength parameter controls the intensity of the mask's influence on the conditioning data. It is a floating-point value with a default of 1.0, a minimum of 0.0, and a maximum of 10.0. Adjusting this value allows you to fine-tune how strongly the mask affects the conditioning.

set_cond_area

This parameter allows you to specify whether the conditioning area should be set to the bounds of the mask or left as the default. It accepts two options: "default" and "mask bounds". Choosing "mask bounds" will restrict the conditioning effect to the area defined by the mask.

Conditioning (Set Mask) Output Parameters:

conditioning

The output is the modified conditioning data, which now includes the effects of the applied mask. This output can be used in subsequent nodes to influence the AI's generation process, ensuring that the conditioning effects are applied as intended.

Conditioning (Set Mask) Usage Tips:

  • To focus the conditioning effect on a specific area, use a detailed mask and set the set_cond_area parameter to "mask bounds".
  • Adjust the strength parameter to control how strongly the mask influences the conditioning data. Higher values will increase the mask's impact, while lower values will reduce it.
  • Experiment with different mask shapes and strengths to achieve the desired conditioning effect in your AI-generated art.

Conditioning (Set Mask) Common Errors and Solutions:

Mask shape mismatch

  • Explanation: The shape of the provided mask does not match the expected dimensions.
  • Solution: Ensure that the mask is correctly formatted and has the appropriate dimensions for the conditioning data.

Invalid strength value

  • Explanation: The strength parameter is set to a value outside the allowed range.
  • Solution: Adjust the strength parameter to a value between 0.0 and 10.0.

Unsupported set_cond_area option

  • Explanation: The set_cond_area parameter is set to an unsupported value.
  • Solution: Use either "default" or "mask bounds" as the value for the set_cond_area parameter.

Conditioning (Set Mask) 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.