Skip to content

ComfyNodePRs/PR-ComfyUI-utils-nodes-92ec0ed3

 
 

Repository files navigation

Some Utils for ComfyUI

LoadImageWithSwitch

Modified the official LoadImage node by adding a switch. When turned off, it will not load the image.

LoadImageMaskWithSwitch

Modified the official LoadImageMask node by adding a switch. When turned off, it will not load the image to mask.

LoadImageWithoutListDir

When there are a lot of images in the input directory, loading image with os.listdir can be slow. This node avoids using os.listdir to improve performance.

LoadImageMaskWithoutListDir

When there are a lot of images in the input directory, loading image as Mask with os.listdir can be slow. This node avoids using os.listdir to improve performance.

ImageCompositeMaskedWithSwitch

Modified the official ImageCompositeMasked node by adding a switch. When turned off, it will not return the destination image directly.

ImageBatchOneOrMore

This node can input one or more images, the limit is six. It expands the functionality of the official ImageBatch node from two to multiple images.

ImageConcatenateOfUtils

This node, ImageConcatenateOfUtils, is an extension of the original ImageConcatenate node developed by @kijai.

Features

  • Upscale: This extension adds the capability to upscale images.
  • Check: Additional functionality for cheching the second image empty or not.

Original node

The original ImageConcatenate node can be found here. Special thanks to @kijai for their contribution to the initial version.

ColorCorrectOfUtils

This node, ColorCorrectOfUtils, is an extension of the original ColorCorrect node developed by @EllangoK. Added the chanels of red, green, and blue adjustment functionalities.

ModifyTextGender

This node adjusts the text to describe the gender based on the input. If the gender input is 'M', the text will be adjusted to describe as male; if the gender input is 'F', it will be adjusted to describe as female.

SplitMask

This node splits one mask into two masks of the same size according to the area of the submasks. If there are more than two areas, it will select the two largest submasks.

MaskFastGrow

This node is designed for growing masks quickly. When using the official or other mask growth nodes, the speed slows down significantly with large grow values, such as above 20. In contrast, this node maintains consistent speed regardless of the grow value.

MaskAutoSelector

Check the three input masks. If any are available, return the first. If none are available, raise an exception.

CheckpointLoaderSimpleWithSwitch

Enhanced the official LoadCheckpoint node by integrating three switches. Each switch controls whether a specific component is loaded. When a switch is turned off, the corresponding component will not be loaded. if you use the extra vae and close the model's vae loading, that will save memory.

ImageResizeTo8x

Modified the image-resize-comfyui image resize node by adding logic to crop the resulting image size to 8 times size, similar to the VAE encode node. This avoids pixel differences when pasting back by the ImageCompositeMasked node.

TextPreview

Added the node for convenience. The code is originally from ComfyUI-Custom-Scripts, thanks.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.0%
  • JavaScript 4.0%