ComfyUI  >  Nodes  >  ComfyUI-Advanced-ControlNet >  Scaled Soft Masked Weights 🛂🅐🅒🅝

ComfyUI Node: Scaled Soft Masked Weights 🛂🅐🅒🅝

Class Name

ScaledSoftMaskedUniversalWeights

Category
Adv-ControlNet 🛂🅐🅒🅝/weights
Author
Kosinkadink (Account age: 3725 days)
Extension
ComfyUI-Advanced-ControlNet
Latest Updated
6/28/2024
Github Stars
0.4K

How to Install ComfyUI-Advanced-ControlNet

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

Scaled Soft Masked Weights 🛂🅐🅒🅝 Description

Advanced weighting control for ControlNet models with scaled, soft-masked approach for precise art generation.

Scaled Soft Masked Weights 🛂🅐🅒🅝:

The ScaledSoftMaskedUniversalWeights node is designed to provide advanced control over the weighting of ControlNet models by applying a scaled and soft-masked approach. This node is particularly useful for AI artists who want to fine-tune the influence of different parts of their input data on the final output. By normalizing and scaling the mask, it ensures that the weights are applied smoothly and effectively, enhancing the quality and precision of the generated art. The node also allows for additional customization through parameters like uncond_multiplier and cn_extras, making it a versatile tool for achieving desired artistic effects.

Scaled Soft Masked Weights 🛂🅐🅒🅝 Input Parameters:

base_multiplier

This parameter sets the base multiplier for the weights. It determines the initial scaling factor applied to the weights before any other modifications. The value ranges from 0.0 to 1.0, with a default of 0.825. Adjusting this parameter can significantly impact the strength and influence of the weights on the final output.

flip_weights

This boolean parameter indicates whether the weights should be flipped. When set to True, the weights are reversed, which can be useful for certain artistic effects or to match specific requirements of the ControlNet model. The default value is False.

uncond_multiplier

This parameter sets the multiplier for unconditional weights. It allows you to adjust the influence of unconditional components in the model. The value ranges from 0.0 to 1.0, with a default of 1.0. This parameter is optional and can be used to fine-tune the balance between conditional and unconditional elements.

cn_extras

This parameter accepts a dictionary of extra settings specific to ControlNet. These settings can provide additional customization options for the weights, allowing for more precise control over the model's behavior. This parameter is optional and can be left empty if no extra settings are needed.

Scaled Soft Masked Weights 🛂🅐🅒🅝 Output Parameters:

CONTROL_NET_WEIGHTS

This output provides the computed weights for the ControlNet model. These weights are adjusted based on the input parameters and are ready to be used in the model to influence the final output. The weights ensure that the desired artistic effects are achieved by controlling the influence of different parts of the input data.

TIMESTEP_KEYFRAME

This output provides a keyframe for the timestep, which includes the control weights. The keyframe is used to manage the application of weights over different timesteps, ensuring smooth transitions and consistent application of the weights throughout the generation process.

Scaled Soft Masked Weights 🛂🅐🅒🅝 Usage Tips:

  • To achieve a more subtle effect, lower the base_multiplier value. This will reduce the overall influence of the weights on the final output.
  • Experiment with the flip_weights parameter to see how reversing the weights affects your art. This can sometimes produce interesting and unexpected results.
  • Use the uncond_multiplier to balance the influence of conditional and unconditional components. A higher value will give more weight to unconditional elements, while a lower value will emphasize conditional components.
  • Take advantage of the cn_extras parameter to fine-tune the behavior of the ControlNet model. This can be particularly useful for advanced users who need precise control over the model's settings.

Scaled Soft Masked Weights 🛂🅐🅒🅝 Common Errors and Solutions:

"Mask normalization failed: x_min equals x_max"

  • Explanation: This error occurs when the minimum and maximum values of the mask are the same, which prevents proper normalization.
  • Solution: Ensure that the mask has a range of values. If necessary, adjust the mask to include a wider range of values before passing it to the node.

"Invalid base_multiplier value"

  • Explanation: This error occurs when the base_multiplier value is outside the allowed range of 0.0 to 1.0.
  • Solution: Check the base_multiplier value and ensure it is within the specified range. Adjust the value accordingly.

"Invalid uncond_multiplier value"

  • Explanation: This error occurs when the uncond_multiplier value is outside the allowed range of 0.0 to 1.0.
  • Solution: Check the uncond_multiplier value and ensure it is within the specified range. Adjust the value accordingly.

"cn_extras must be a dictionary"

  • Explanation: This error occurs when the cn_extras parameter is not provided as a dictionary.
  • Solution: Ensure that the cn_extras parameter is a dictionary. If no extra settings are needed, you can pass an empty dictionary.

Scaled Soft Masked Weights 🛂🅐🅒🅝 Related Nodes

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