Extensions/ComfyUI-lhyNodes
ComfyUI Extension

ComfyUI-lhyNodes

Some useful nodes for ComfyUI.

By lihaoyun6·Created 11 months ago·Updated 5 days ago· 20
lihaoyun6/ComfyUI-lhyNodes
Nodes47
On cloudLocal install
CategorylhyNodes/Utils, lhyNodes/Mask
Stars20
Updated5 days ago

Nodes (47)

Any To Any

A Python eval in your graph — powerful, and the pack will warn you about it

lhyNodes/Utils
Blockify Mask
lhyNodes/Mask
Checkpoint Name
lhyNodes/Utils
CLIP Name
lhyNodes/Utils
CLIP Name (GGUF)
lhyNodes/Utils
CLIP Text Encode (Cached)

The text encoder that stops re-doing work it already did

lhyNodes/Conditioning
CLIP Vision Name
lhyNodes/Utils
CodeableString
lhyNodes/Utils
ControlNet Name
lhyNodes/Utils
CSV RandomPicker
lhyNodes/String
CSV RandomPicker (Advanced)
lhyNodes/String
Set CUDA Device
lhyNodes/Utils
Draw Mask On Image
lhyNodes/Mask
Draw ViT Pose
lhyNodes/Wan
Dynamic Parameter Panel
lhyNodes/UI
Grow Mask
lhyNodes/Mask
Image Batch to Image List
lhyNodes/Image
Image Batch to Images
lhyNodes/Image
Image Offset
lhyNodes/Image
Image Overlay
lhyNodes/Image
ImageScaleToTotalPixels
lhyNodes/Image
Latent Preview (Tiny VAE)
lhyNodes/Preview
Live Previewer
PowerLoader
Load Image Batch

Load one image at a time from a folder — without reconnecting wires

lhyNodes/Image
Load Image from Zip
Custom/Image
LoRA Name
lhyNodes/Utils
Mask to Coordinates (SAM2)
lhyNodes/Mask
Mask to Coordinates V2 (SAM2)
lhyNodes/Mask
Morse Code

Morse code, in seven languages, without leaving the graph

string
None
lhyNodes/Utils
Parameter Unpacker
lhyNodes/UI
WanAnimate Pose Reformer
lhyNodes/WanAnimate
Queue Handler
lhyNodes/Utils
RemoteCLIP Client
RemoteCLIP
RemoteCLIP Server
Remote Server
Request URL
lhyNodes/Utils
Save Image as Zip
lhyNodes/File
Save Text as Zip
lhyNodes/File
String Format
lhyNodes/String
String Format (Advanced)
lhyNodes/String
UNet Name
lhyNodes/Utils
UNet Name (GGUF)
lhyNodes/Utils
UpscaleModelName
lhyNodes/Utils
VAE Name
lhyNodes/Utils
WanAnimate Best Frame Window
lhyNodes/Wan
WanAnimate Mask Preprocessor
lhyNodes/Wan
WanAnimate Face Reformer
lhyNodes/WanAnimate
Readme

<p align="center"> <img src="https://avatars.githubusercontent.com/u/16348097" width="200" height="200" /> <h1 align="center">ComfyUI-lhyNodes</h1> <h3 align="center">Welcome to my ComfyUI efficiency node suite<br>[<a href="./README_zh.md">📃中文版</a>] </p> <p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="./res/img/preview_dark.png"> <source media="(prefers-color-scheme: light)" srcset="./res/img/preview.png"> <img alt="Screenshots" src="./res/img/preview.png"/> </picture> </p>

Installation

You can:

⭐️ Search for lhyNodes in ComfyUI-Manager and install it.

or

  • Install it manually in command line:

    cd ComfyUI/custom_nodes
    git clone https://github.com/lihaoyun6/ComfyUI-lhyNodes.git
    python -m pip install -r ComfyUI-lhyNodes/requirements.txt
    

Nodes

Load Image Batch

Upload multiple images directly through the browser and generate a image batch or image list.

Image Batch to Images

Convert the image_batch object into a batch of images.

Image Batch to Image List

Convert the image_batch object into a list of images.

Load Image from ZIP

Read images from uploaded zip file and generate image_batch object.

Save Image as ZIP

Save the image (with optional additional text) as a ZIP file and provide it for download.

String Format

Format and output the text containing placeholders {} according to the variables.

String Format (Advanced)

Format and output the text containing placeholders {} according to the variables.
And you can enable or disable any variable.

CSV Random Picker

Randomly select elements from a CSV string by seed.

CSV Random Picker (Advanced)

Randomly select elements from a CSV string by seed with more options.

Queue Handler

Use triggers to control when any node executes.

None

Do nothing, just output None

Set CUDA Device

Modify the value of the environment variable CUDA_VISIBLE_DEVICES during runtime.

Image Overlay

Overlay an image onto another image.

Grow Mask

Growing input masks extremely fast.

Blockify Mask / Draw Mask On Image

Just like their names.

WanAnimate Mask Preprocessor

All-in-one Wan Animate mask preprocessor.

WanAnimate Face Reformer

Remove faceless frames from the facial frame sequence and restore its coherence.

WanAnimate Pose Reformer

Use it to remove all-black frames from any frame sequence and restore its coherence.

WanAnimate Best Frame Window

Calculate the optimal frame window size based on the total frames count.

Mask to Coordinates

Generate SAM conditions by drawing points in ComfyUI's Mask Editor.

Mask to Coordinates V2

Generate positive and negative SAM conditions using mask brush and colored brush.

Credits