Visit ComfyUI Online for ready-to-use ComfyUI environment
ComfyUI_Mira enhances ComfyUI with nodes like Integer Multiplier, Float Multiplier, Convert Numeral to String, Create Canvas Advanced, Create PNG Mask, and Color Mask to HEX String, boosting functionality and versatility.
ComfyUI_Mira is an extension for ComfyUI designed to enhance the workflow of AI artists by providing custom nodes that improve upon existing functionalities. This extension is particularly useful for creating and manipulating masks, which are essential for regional conditioning in image generation. By using ComfyUI_Mira, you can create complex mask layouts, convert color masks to various formats, and even generate masks for watermark removal. This extension aims to streamline your workflow, making it easier to achieve precise and high-quality results.
ComfyUI_Mira works by adding custom nodes to ComfyUI, each designed to perform specific tasks related to mask creation and manipulation. These nodes allow you to define regions within an image, apply different conditions to these regions, and convert masks between various formats. The extension leverages ideas from other projects like sd-webui-regional-prompter and comfyui-lama-remover to provide a comprehensive set of tools for AI artists.
This feature allows you to create a tiled PNG image with a color mask stack for regional conditioning. You can define the image size, the number of rows and columns, and customize the layout using a specific syntax.
Width
, Height
: Define the image size.Colum_first
: Boolean trigger for horizontal cuts.Rows
, Columns
: Define the number of blocks.Layout
: Customize block layouts.Image
: Visualization of your layout.PngColorMasks
: List of color information for each block.PngRectangles
: List of rectangle information for each block.Debug
: Debug information.This feature creates a nested rectangles PNG image with a color mask stack for regional conditioning.
Width
, Height
: Define the image size.X
, Y
: Center point of all rectangles.unlimit_top
, unlimit_bottom
, unlimit_left
, unlimit_right
: Boolean triggers for mask creation limits.Layout
: Customize block layouts.Image
: Visualization of your layout.PngColorMasks
: List of color information for each block.PngRectangles
: List of rectangle information for each block.Debug
: Debug information.Converts a range of PngColorMasks
to masks with or without blur.
Image
: Source image.PngColorMasks
: List of color masks.Blur
: Intensity of blur around the mask edges.Start_At_Index
: Starting index for blocks.mask_[0-9]
: Generated masks.Converts a specified index of PngColorMasks
to a HEX value.
PngColorMasks
: List of color masks.Index
: Block index number.mask_color
: HEX value of the color.Converts a specified index of PngColorMasks
to RGB values.
PngColorMasks
: List of color masks.Index
: Block index number.R
, G
, B
: RGB values.Creates canvas information for latent images with a landscape switch.
Width
, Height
: Image size.Landscape
: Boolean trigger to swap width and height.Batch
: Batch size.HiResMultiplier
: Multiplier for high-resolution fixes.Debug
: Debug information.Width
, Height
: Adjusted image size.Batch
: Batch size.HiRes Width
, HiRes Height
: Dimensions for high-resolution fixes.Generates random tiling mask layouts for Create Tilling PNG Mask
.
min_rows
, max_rows
: Range for row cuts.min_colums
, max_colums
: Range for column cuts.max_weights_gcuts
, max_weights_ncuts
: Maximum weights for cuts.rnd_seed
: Seed for random generation.Layout
: Generated layout string.Generates random nested mask layouts for Create Nested PNG Mask
.
min_nested
, max_nested
: Range for nested masks.min_weights
, max_weights
: Weights for each nest.rnd_seed
: Seed for random generation.Layout
: Generated layout string.top
, bottom
, left
, right
: Boolean values for mask creation limits.Selects between two text inputs based on a boolean trigger and adds common text.
use_text2
: Boolean trigger to switch text.common_text_at_front
: Boolean trigger to place common text at the front.text1
: Default text.text2
: Alternative text.common_text
: Common text to add.text
: Combined text output.text_alt
: Alternative combined text output.rnd_seed
is connected and properly configured.Layout
input to specify custom block layouts. Refer to the examples provided in the documentation.Create Watermark Removal Mask
node to generate masks for watermark detection and removal.For additional resources, tutorials, and community support, you can refer to the following:
© Copyright 2024 RunComfy. All Rights Reserved.