ModelMergeWAN2_1:
The ModelMergeWAN2_1 node is a specialized tool designed for merging two models, particularly focusing on models with different block structures, such as the 1.3B and 14B models. This node is part of the advanced model merging category and is tailored to handle models with varying numbers of blocks, specifically 30 blocks for the 1.3B model and 40 blocks for the 14B model. Additionally, it accommodates image-to-video models that include an extra image embedding (img_emb). The primary purpose of this node is to facilitate the seamless integration of two models by allowing fine-tuned control over the merging process through adjustable parameters. This capability is particularly beneficial for AI artists and developers who wish to experiment with model blending to achieve unique outputs or enhance model performance by leveraging the strengths of different models.
ModelMergeWAN2_1 Input Parameters:
model1
This parameter represents the first model to be merged. It is a required input and serves as one of the two primary models involved in the merging process. The model should be compatible with the node's merging capabilities.
model2
This parameter represents the second model to be merged. Like model1, it is a required input and is the counterpart to the first model. The merging process will blend the features of this model with those of model1.
patch_embedding.
This parameter controls the blending ratio for the patch embedding component of the models. It is a float value ranging from 0.0 to 1.0, with a default of 1.0. Adjusting this value influences how much of the patch embedding from model2 is incorporated into the merged model.
time_embedding.
This parameter adjusts the blending ratio for the time embedding component. It functions similarly to patch_embedding., with a float range from 0.0 to 1.0 and a default of 1.0. It determines the extent to which the time embedding from model2 is used in the final model.
time_projection.
This parameter manages the blending ratio for the time projection component. It follows the same float range and default as the previous parameters, affecting the integration of the time projection from model2.
text_embedding.
This parameter sets the blending ratio for the text embedding component. It allows for fine-tuning the influence of model2's text embedding in the merged model, with a float range from 0.0 to 1.0 and a default of 1.0.
img_emb.
This parameter is specific to image-to-video models and controls the blending ratio for the image embedding component. It shares the same float range and default as other parameters, determining the contribution of model2's image embedding.
blocks.0. to blocks.39. These parameters represent the blending ratios for each of the 40 blocks in the models. Each block has an individual float parameter ranging from 0.0 to 1.0, with a default of 1.0. These parameters allow for granular control over how each block from model2 is merged with model1.
head.
This parameter adjusts the blending ratio for the head component of the models. It follows the same float range and default as other parameters, influencing the integration of the head from model2.
ModelMergeWAN2_1 Output Parameters:
MODEL
The output of the ModelMergeWAN2_1 node is a merged model, represented as MODEL. This output is the result of blending the two input models (model1 and model2) based on the specified parameters. The merged model combines the strengths and features of both input models, potentially leading to enhanced performance or unique characteristics.
ModelMergeWAN2_1 Usage Tips:
- Experiment with different blending ratios for specific components to achieve desired model characteristics. For instance, increasing the ratio for
text_embedding.can enhance text-related features in the merged model. - Utilize the block-specific parameters (
blocks.0.toblocks.39.) to fine-tune the integration of individual blocks, allowing for precise control over the model's architecture and behavior.
ModelMergeWAN2_1 Common Errors and Solutions:
Error: "Incompatible model structures"
- Explanation: This error occurs when the input models have incompatible structures or block counts that cannot be reconciled by the node.
- Solution: Ensure that both models have a compatible number of blocks and are suitable for merging. Consider adjusting the models or selecting different models that align with the node's capabilities.
Error: "Invalid parameter value"
- Explanation: This error arises when a parameter value is set outside the allowed range (0.0 to 1.0).
- Solution: Verify that all parameter values are within the specified range and adjust any values that exceed the limits. Use the default values as a starting point if necessary.
