ComfyUI > Nodes > KJNodes for ComfyUI > ConditioningSetMaskAndCombine

ComfyUI Node: ConditioningSetMaskAndCombine

Class Name

ConditioningSetMaskAndCombine

Category
KJNodes/masking/conditioning
Author
kijai (Account age: 2192days)
Extension
KJNodes for ComfyUI
Latest Updated
2024-06-25
Github Stars
0.35K

How to Install KJNodes for ComfyUI

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

ConditioningSetMaskAndCombine Description

Enhance AI art generation with multiple conditioning masks for nuanced artistic outputs.

ConditioningSetMaskAndCombine:

The ConditioningSetMaskAndCombine node is designed to enhance your AI art generation process by allowing you to apply multiple conditioning masks and combine them effectively. This node is particularly useful when you want to apply different conditioning effects to various parts of your image, enabling more complex and nuanced artistic outputs. By setting masks and combining them, you can control the influence of each conditioning input, ensuring that specific areas of your image receive the desired effect. This node simplifies the process of managing multiple conditioning inputs, making it easier to achieve your creative vision.

ConditioningSetMaskAndCombine Input Parameters:

conditioning

This parameter represents the initial conditioning input that you want to modify and combine with other masks. It is essential for defining the base conditioning that will be altered by the masks.

mask

The mask parameter allows you to specify the mask that will be applied to the conditioning input. This mask determines which areas of the image will be affected by the conditioning. The mask should be a tensor, and if its shape has fewer than three dimensions, it will be automatically adjusted by adding an extra dimension.

strength

The strength parameter controls the intensity of the mask's effect on the conditioning input. 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 the influence of the mask, with higher values resulting in a stronger effect.

set_cond_area

This parameter determines whether the conditioning area should be set to the bounds of the mask. It accepts two options: "default" and "mask bounds". Choosing "mask bounds" will restrict the conditioning effect to the area defined by the mask, while "default" will apply the conditioning to the entire image.

ConditioningSetMaskAndCombine Output Parameters:

conditioning

The output is the modified conditioning input after applying the specified mask and combining it with other conditioning inputs. This output can be used in subsequent nodes to further refine your AI-generated artwork.

ConditioningSetMaskAndCombine Usage Tips:

  • Experiment with different strength values to achieve the desired level of influence for each mask.
  • Use the set_cond_area parameter to control whether the conditioning effect is applied globally or restricted to the mask's bounds.
  • Combine multiple ConditioningSetMaskAndCombine nodes to layer different conditioning effects and create more complex artistic results.

ConditioningSetMaskAndCombine Common Errors and Solutions:

"Mask shape is invalid"

  • Explanation: This error occurs when the mask tensor does not have the required dimensions.
  • Solution: Ensure that your mask tensor has at least three dimensions. If it has fewer, the node will automatically adjust it by adding an extra dimension.

"Invalid strength value"

  • Explanation: This error happens when the strength parameter is set outside the allowed range.
  • Solution: Make sure the strength value is between 0.0 and 10.0. Adjust the value accordingly to stay within this range.

"Conditioning input missing"

  • Explanation: This error indicates that the required conditioning input is not provided.
  • Solution: Ensure that you have connected a valid conditioning input to the node before execution.

ConditioningSetMaskAndCombine Related Nodes

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