ComfyUI > Nodes > ComfyUI > ModelMergeWAN2_1

ComfyUI Node: ModelMergeWAN2_1

Class Name

ModelMergeWAN2_1

Category
advanced/model_merging/model_specific
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ModelMergeWAN2_1 Description

Specialized tool for merging models with different block structures, accommodating varying block numbers and image-to-video models.

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.

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. to blocks.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.

ModelMergeWAN2_1 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.