The ClipMergeSimple node is used to combine two CLIP text encoder models based on a specified ratio.
CLIPMergeSimple
is an advanced model merging node used to combine two CLIP text encoder models based on a specified ratio.
This node specializes in merging two CLIP models based on a specified ratio, effectively blending their characteristics. It selectively applies patches from one model to another, excluding specific components like position IDs and logit scale, to create a hybrid model that combines features from both source models.
Parameter | Data Type | Description |
---|---|---|
clip1 | CLIP | The first CLIP model to be merged. It serves as the base model for the merging process. |
clip2 | CLIP | The second CLIP model to be merged. Its key patches, except for position IDs and logit scale, are applied to the first model based on the specified ratio. |
ratio | FLOAT | Range 0.0 - 1.0 , determines the proportion of features from the second model to blend into the first model. A ratio of 1.0 means fully adopting the second model’s features, while 0.0 retains only the first model’s features. |
Parameter | Data Type | Description |
---|---|---|
clip | CLIP | The resulting merged CLIP model, incorporating features from both input models according to the specified ratio. |
The node uses weighted averaging to merge the two models:
clip1
as the base modelclip2
.position_ids
and .logit_scale
(1.0 - ratio) * clip1 + ratio * clip2