ComfyUI-nodes-hnmr

ComfyUI-nodes-hnmr
★ 11

自定义节点采样与潜空间参数可视化兼容性修复
为 ComfyUI 提供经修复的自定义节点集合(Latent、Sampling、Model、Loader、Image、Text),提升兼容性并支持参数 X/Y/Z 可视化与批量探索。
💡 用于参数批量扫描与 X/Y/Z 可视化,替代并修复原始节点库。
🍴 3 Forks💻 Python🔄 2024-05-22
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/86a6deb1b5f6
cover
xyz plot 2
xyz plot 3
merge block weighted
multi merge block weighted
latent visualization
📄 README

Disclaimer

This is only a fix implemented on top of the original ComfyUI-nodes-hnmr by hnmr293.

The reason why this repo exists is because, hnmr293 has not been approving any pull requests for a while now, and I believe our community deserves to be able to use this amazing tool by hnmr293 without any issues.

All credits go to:

  • hnmr93
  • spacepxl
  • WeeBull
  • ComfyUI custom nodes

    Examples

    X/Y/Z-plot

    seeds, steps, cfg scales and others

    workflow link

    models

    workflow link

    VAEs

    workflow link

    Merge

    simple merge and merge block weighted (thanks for @bbc-mc)

    BMW

    workflow link

    Multi-BMW

    BMW with multi-alpha like supermerger (thanks for @hako-mikan)

    workflow link

    Latent visualization

    visualization of 4-channel latent tensor

    workflow link

    Node List

    Latent nodes

    |category|node name|input type|output type|desc.|

    | — | — | — | — | — |

    |latent|RandomLatentImage|INT, INT, INT|LATENT|(width, height, batch_size)|

    |latent|VAEDecodeBatched|LATENT, VAE, INT|IMAGE|VAE decoding with specified batch size|

    |latent|VAEEncodeBatched|IMAGE, VAE, INT|LATENT|VAE encoding with specified batch size|

    |latent|LatentToImage|LATENT, FLOAT, FLOAT|IMAGE|convert 4-ch latent tensor to 4 grayscale images|

    |latent|LatentToHist|LATENT, ...|IMAGE|create a histogram of the input latent|

    Sampling nodes

    |category|node name|input type|output type|desc.|

    | — | — | — | — | — |

    |sampling|KSamplerSetting|MODEL, CONDITIONING, CONDITIONING, LATENT|DICT|aggregate sampler’s setting to single dict|

    |sampling|KSamplerOverrided|various|LATENT|override sampler’s setting defined by KSamplerSetting|

    |sampling|KSamplerXYZ|various|LATENT|generate latents with values|

    Model nodes and Loader nodes

    |category|node name|input type|output type|desc.|

    | — | — | — | — | — |

    |loader|StateDictLoader|(model name)|DICT|load state_dict|

    |model|Dict2Model|DICT, (config_file)|MODEL|instantiate a model from given state_dict|

    |model|StateDictMerger|DICT, DICT, FLOAT|MODEL, CLIP, VAE|merge two or three models|

    |model|StateDictMergerBlockWeighted|DICT, DICT|DICT|merge two models with per-block weights|

    |model|StateDictMergerBlockWeightedMulti|MODEL, MODEL, STRING|MODEL, CLIP, VAE|merge two models with per-block weights|

    |model|SaveStateDict|MODEL, STRING, STRING|-|save state_dict to the output directory|

    |model|ModelIter|MODEL, MODEL|MODEL|iterate models|

    |model|CLIPlIter|CLIP, CLIP|CLIP|iterate CLIPs|

    |model|VAElIter|VAE, VAE|VAE|iterate VAEs|

    Image nodes

    |category|node name|input type|output type|desc.|

    | — | — | — | — | — |

    |image|ImageBlend2|IMAGE, IMAGE, FLOAT, STRING|IMAGE|ImageBlend with extra blend modes|

    |image|GridImage|IMAGE, INT, INT|-|generate single image with specific number of columns|

    Others

    |category|node name|input type|output type|desc.|

    | — | — | — | — | — |

    |utils|SaveText|STRING, STRING, STRING|-|save texts with specified prefix and ext|