ComfyUI-ModelUtils

ComfyUI-ModelUtils
★ 7

模型管理键操作模型合并LoRA提取
用于检查、修改和生成模型文件的工具集合,支持元数据查看、键重命名、剪枝、模型合并与LoRA提取,便于模型维护与定制化
💡 批量修改模型键、合并模型或从模型提取LoRA适配器。
🍴 1 Forks💻 Python🔄 2026-03-07
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/af9fbf81e746
📦 requirements.txt
#
No
external
dependencies
required
📄 README

ComfyUI-ModelUtils

A collection of ComfyUI custom nodes for inspecting, modifying, merging, and creating model files. Supports Models, TextEncoders, LoRAs, Checkpoints, and Embeddings.

Features

  • MetaKeys – Inspect and display metadata and tensor keys from model files
  • RenameKeys – Batch rename tensor keys using pattern matching
  • PruneKeys – Remove unwanted layers/keys from models
  • Mergers – Combine 2 or 3 models with configurable blend modes and ratios
  • LoRA Extraction – Extract LoRA adapters from model pairs using various SVD rank selection methods (Fixed, Ratio, Quantile, Knee-detection, Frobenius-norm)
  • Example Workflows

    📥 GetMetaAndkeys.json


    📥 LoRA_Extract_nodes.json


    📥 Merging_Examples.json


    📥 RenameKeysInModel.json

    Acknowledgements

    The LoRA extraction functionality was inspired by and references the excellent work from:

  • kohya-ss/sd-scripts – Training scripts for Stable Diffusion
  • KohakuBlueleaf/LyCORIS – Advanced LoRA techniques
  • bmaltais/kohya_ss – Windows-friendly GUI for sd-scripts
  • License

    See LICENSE for details.