ComfyUI > Nodes > ComfyWarp > MixConsistencyMaps

ComfyUI Node: MixConsistencyMaps

Class Name

MixConsistencyMaps

Category
WarpFusion
Author
Sxela (Account age: 3529days)
Extension
ComfyWarp
Latest Updated
2024-11-16
Github Stars
0.03K

How to Install ComfyWarp

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

MixConsistencyMaps Description

Blend multiple consistency maps for unified representation, fine-tuning blending process efficiently.

MixConsistencyMaps:

The MixConsistencyMaps node is designed to blend multiple consistency maps into a single, cohesive map. This node is particularly useful in scenarios where you need to combine different types of consistency data, such as missed consistency, overshoot consistency, and edge consistency, to create a unified representation. By leveraging this node, you can fine-tune the blending process through various parameters, ensuring that the resulting map meets your specific requirements. The primary goal of this node is to provide a flexible and efficient way to merge different consistency maps, enhancing the overall quality and coherence of the final output.

MixConsistencyMaps Input Parameters:

missed_consistency

This parameter represents the missed consistency map, which is one of the three maps to be blended. It is a 2D array with values ranging from 0 to 1, where 0 indicates no consistency and 1 indicates full consistency. The missed consistency map helps in identifying areas where consistency is lacking.

overshoot_consistency

This parameter represents the overshoot consistency map, another map to be blended. Similar to the missed consistency map, it is a 2D array with values ranging from 0 to 1. The overshoot consistency map highlights areas where the consistency exceeds the expected levels.

edge_consistency

This parameter represents the edge consistency map, the third map to be blended. It is also a 2D array with values ranging from 0 to 1. The edge consistency map focuses on the consistency along the edges of objects within the image.

blur

This parameter controls the amount of Gaussian blur applied to the final blended map. It is an integer value where higher values result in more blurring. The default value is 2. Blurring can help in smoothing out the transitions between different consistency levels.

dilate

This parameter controls the dilation applied to the final blended map. It is an integer value where higher values result in more dilation. The default value is 0. Dilation can help in expanding the areas of high consistency.

force_binary

This boolean parameter determines whether the final blended map should be converted to a binary map. If set to True, values below 0.5 will be set to 0, and values above 0.5 will be set to 1. The default value is True. This can be useful for creating a clear distinction between consistent and inconsistent areas.

missed_consistency_weight

This parameter controls the weight of the missed consistency map in the blending process. It is a float value where higher values give more importance to the missed consistency map. The default value is 1.

overshoot_consistency_weight

This parameter controls the weight of the overshoot consistency map in the blending process. It is a float value where higher values give more importance to the overshoot consistency map. The default value is 1.

edges_consistency_weight

This parameter controls the weight of the edge consistency map in the blending process. It is a float value where higher values give more importance to the edge consistency map. The default value is 1.

MixConsistencyMaps Output Parameters:

mixed

The output parameter mixed is the final blended consistency map. It is a 2D array with values ranging from 0 to 1, representing the combined consistency from the input maps. This output can be used for further processing or analysis, providing a unified view of the different consistency aspects.

MixConsistencyMaps Usage Tips:

  • Adjust the blur parameter to smooth out transitions in the final map, especially if the input maps have sharp edges.
  • Use the dilate parameter to expand areas of high consistency, which can be useful for emphasizing certain regions.
  • Set force_binary to True if you need a clear distinction between consistent and inconsistent areas.
  • Fine-tune the weights (missed_consistency_weight, overshoot_consistency_weight, edges_consistency_weight) to prioritize certain consistency maps over others based on your specific needs.

MixConsistencyMaps Common Errors and Solutions:

"Input maps must be 2D arrays with values ranging from 0 to 1"

  • Explanation: This error occurs if the input maps are not in the expected format.
  • Solution: Ensure that all input maps are 2D arrays with values between 0 and 1.

"Invalid value for blur or dilate parameter"

  • Explanation: This error occurs if the blur or dilate parameters are set to invalid values.
  • Solution: Check that the blur and dilate parameters are set to non-negative integers.

"Weights must be positive float values"

  • Explanation: This error occurs if any of the weight parameters are set to non-positive values.
  • Solution: Ensure that missed_consistency_weight, overshoot_consistency_weight, and edges_consistency_weight are positive float values.

MixConsistencyMaps Related Nodes

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