ComfyUI > Nodes > ComfyUI Essentials > 🔧 Mask Flip

ComfyUI Node: 🔧 Mask Flip

Class Name

MaskFlip+

Category
essentials/mask
Author
cubiq (Account age: 5020days)
Extension
ComfyUI Essentials
Latest Updated
2024-07-01
Github Stars
0.35K

How to Install ComfyUI Essentials

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

🔧 Mask Flip Description

Versatile node for flipping mask images along specified axes, enhancing AI artists' workflow and creativity.

🔧 Mask Flip+:

MaskFlip+ is a versatile node designed to flip a given mask image along specified axes. This node is particularly useful for AI artists who need to manipulate mask orientations to achieve desired effects in their artwork. By flipping the mask along the x-axis, y-axis, or both, you can easily mirror or invert the mask, allowing for greater flexibility and creativity in your projects. The primary goal of MaskFlip+ is to provide a simple yet powerful tool to adjust the orientation of masks, enhancing the overall workflow and enabling more dynamic compositions.

🔧 Mask Flip+ Input Parameters:

mask

The mask parameter represents the input mask image that you want to flip. This mask is typically a 2D tensor, but it can also be a 3D tensor if it includes additional dimensions. The mask serves as the base image that will be manipulated by the node. The quality and resolution of the mask directly impact the final output, so ensure that the mask is of appropriate quality for your needs.

axis

The axis parameter determines the direction(s) along which the mask will be flipped. It accepts three options: x, y, and xy. Choosing x will flip the mask horizontally, y will flip it vertically, and xy will flip it both horizontally and vertically. This parameter allows you to control the orientation of the mask precisely, enabling you to achieve the desired visual effect.

🔧 Mask Flip+ Output Parameters:

MASK

The output parameter MASK is the flipped version of the input mask. This output retains the same dimensions and quality as the original mask but with the specified orientation changes applied. The flipped mask can then be used in subsequent nodes or processes to create more complex and visually appealing compositions.

🔧 Mask Flip+ Usage Tips:

  • To create a mirror effect, use the x axis option to flip the mask horizontally.
  • For an inverted mask, use the y axis option to flip the mask vertically.
  • Combine both x and y axes (using xy) to achieve a complete flip, which can be useful for symmetrical designs or patterns.

🔧 Mask Flip+ Common Errors and Solutions:

"Invalid mask dimensions"

  • Explanation: This error occurs when the input mask does not have the expected dimensions (2D or 3D tensor).
  • Solution: Ensure that the input mask is either a 2D or 3D tensor. If it is a 2D tensor, the node will automatically adjust it by adding an extra dimension.

"Unsupported axis value"

  • Explanation: This error occurs when an invalid value is provided for the axis parameter.
  • Solution: Make sure to use one of the supported values: x, y, or xy. Double-check the input to ensure it matches one of these options.

🔧 Mask Flip Related Nodes

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