ComfyUI Nodes
advanced
model_merging
Model Merge Blocks

Model Merge Blocks

comfyUI节点-ModelMergeBlocks|融合模型(分层)

Documentation

  • Class name: ModelMergeBlocks
  • Category: advanced/model_merging
  • Output node: False

ModelMergeBlocks is designed for advanced model merging operations, allowing for the integration of two models with customizable blending ratios for different parts of the models. This node facilitates the creation of hybrid models by selectively merging components from two source models based on specified parameters.

Input types

ParameterComfy dtypeDescription
model1MODELThe first model to be merged. It serves as the base model onto which patches from the second model are applied.
model2MODELThe second model from which patches are extracted and applied to the first model, based on the specified blending ratios.
inputFLOATSpecifies the blending ratio for the input layer of the models. It determines how much of the second model's input layer is merged into the first model.
middleFLOATDefines the blending ratio for the middle layers of the models. This parameter controls the integration level of the models' middle layers.
outFLOATDetermines the blending ratio for the output layer of the models. It affects the final output by adjusting the contribution of the second model's output layer.

Output types

ParameterComfy dtypeDescription
modelMODELThe resulting merged model, which is a hybrid of the two input models with patches applied according to the specified blending ratios.