ComfyUI InfoComfyUI Info

ComfyUI-nodes-hnmr

This is a fix for ComfyUI - nodes - hnmr by hnmr293. It offers multiple workflow examples like X/Y/Z - plot, merge, and latent visualization. The node list includes various types such as latent, sampling, model, image, and other utility nodes. Each node has defined input and output types, enabling functions like random latent image generation, VAE encoding/decoding, model merging, and image blending. It aims to provide a seamless experience for the community to use these tools without issues.

CYBERLOOM-INC

9 stars
GitHub

Description

Disclaimer

This is solely a fix implemented on top of the original ComfyUI-nodes-hnmr by hnmr293. The repository exists because hnmr293 has not been approving pull requests for an extended period, and I believe our community should be able to use this exceptional tool by hnmr293 without issues. All credit is due to:

ComfyUI Custom Nodes

Cover

Examples

X/Y/Z-plot

Parameters include seeds, steps, CFG scales, and others.
Workflow link
XYZ plot 1

Models
Workflow link
XYZ plot 2

VAEs
Workflow link
XYZ plot 3

Merge

Simple merge and merge block weighted (thanks to @bbc-mc).

BMW

Workflow link
Merge block weighted

Multi-BMW

BMW with multi-alpha, similar to supermerger (thanks to @hako-mikan).
Workflow link
Multi merge block weighted

Latent Visualization

Visualization of 4-channel latent tensor.
Workflow link
Latent visualization

Node List

Latent Nodes

CategoryNode NameInput TypeOutput TypeDescription
LatentRandomLatentImageINT, INT, INTLATENT(width, height, batch size)
LatentVAEDecodeBatchedLATENT, VAE, INTIMAGEVAE decoding with specified batch size
LatentVAEEncodeBatchedIMAGE, VAE, INTLATENTVAE encoding with specified batch size
LatentLatentToImageLATENT, FLOAT, FLOATIMAGEConvert 4-channel latent tensor to 4 grayscale images
LatentLatentToHistLATENT, ...IMAGECreate a histogram of the input latent

Sampling Nodes

CategoryNode NameInput TypeOutput TypeDescription
SamplingKSamplerSettingMODEL, CONDITIONING, CONDITIONING, LATENTDICTAggregate sampler's settings into a single dictionary
SamplingKSamplerOverridedVariousLATENTOverride sampler's settings defined by KSamplerSetting
SamplingKSamplerXYZVariousLATENTGenerate latents with specified values

Model Nodes and Loader Nodes

CategoryNode NameInput TypeOutput TypeDescription
LoaderStateDictLoader(model name)DICTLoad state_dict
ModelDict2ModelDICT, (config file)MODELInstantiate a model from a given state_dict
ModelStateDictMergerDICT, DICT, FLOATMODEL, CLIP, VAEMerge two or three models
ModelStateDictMergerBlockWeightedDICT, DICTDICTMerge two models with per-block weights
ModelStateDictMergerBlockWeightedMultiMODEL, MODEL, STRINGMODEL, CLIP, VAEMerge two models with per-block weights
ModelSaveStateDictMODEL, STRING, STRING-Save state_dict to the output directory
ModelModelIterMODEL, MODELMODELIterate through models
ModelCLIPlIterCLIP, CLIPCLIPIterate through CLIPs
ModelVAElIterVAE, VAEVAEIterate through VAEs

Image Nodes

CategoryNode NameInput TypeOutput TypeDescription
ImageImageBlend2IMAGE, IMAGE, FLOAT, STRINGIMAGEImageBlend with additional blend modes
ImageGridImageIMAGE, INT, INT-Generate a single image with a specified number of columns

Others

CategoryNode NameInput TypeOutput TypeDescription
UtilsSaveTextSTRING, STRING, STRING-Save texts with a specified prefix and extension