ComfyUI  >  Nodes  >  ComfyUI_experiments >  ModelMergeBlockNumber

ComfyUI Node: ModelMergeBlockNumber

Class Name

ModelMergeBlockNumber

Category
advanced/model_merging
Author
comfyanonymous (Account age: 603 days)
Extension
ComfyUI_experiments
Latest Updated
5/22/2024
Github Stars
0.1K

How to Install ComfyUI_experiments

Install this extension via the ComfyUI Manager by searching for  ComfyUI_experiments
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_experiments 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ModelMergeBlockNumber Description

Facilitates advanced model merging with granular blending control for AI artists to create unique outputs.

ModelMergeBlockNumber:

The ModelMergeBlockNumber node is designed to facilitate advanced model merging by allowing you to blend two models at a granular level. This node provides a high degree of control over the merging process by enabling you to specify blending ratios for various blocks within the models. This capability is particularly useful for AI artists who want to combine the strengths of different models to create unique and optimized outputs. By adjusting the blending ratios, you can fine-tune the influence of each model on the final merged model, achieving a customized balance that suits your specific artistic needs.

ModelMergeBlockNumber 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.

model2

This parameter represents the second model to be merged. Like model1, it is a required input and serves as the other primary model in the merging process.

time_embed.

This parameter controls the blending ratio for the time_embed block. It accepts a float value between 0.0 and 1.0, with a default value of 1.0. Adjusting this ratio determines how much influence the time_embed block from model2 has on the final merged model.

label_emb.

This parameter controls the blending ratio for the label_emb block. It accepts a float value between 0.0 and 1.0, with a default value of 1.0. Adjusting this ratio determines how much influence the label_emb block from model2 has on the final merged model.

input_blocks.{i}.

These parameters control the blending ratios for the input_blocks from 0 to 11. Each parameter accepts a float value between 0.0 and 1.0, with a default value of 1.0. Adjusting these ratios determines how much influence each corresponding input_block from model2 has on the final merged model.

middle_block.{i}.

These parameters control the blending ratios for the middle_blocks from 0 to 2. Each parameter accepts a float value between 0.0 and 1.0, with a default value of 1.0. Adjusting these ratios determines how much influence each corresponding middle_block from model2 has on the final merged model.

output_blocks.{i}.

These parameters control the blending ratios for the output_blocks from 0 to 11. Each parameter accepts a float value between 0.0 and 1.0, with a default value of 1.0. Adjusting these ratios determines how much influence each corresponding output_block from model2 has on the final merged model.

out.

This parameter controls the blending ratio for the out block. It accepts a float value between 0.0 and 1.0, with a default value of 1.0. Adjusting this ratio determines how much influence the out block from model2 has on the final merged model.

ModelMergeBlockNumber Output Parameters:

MODEL

The output is a single merged model that combines the specified blocks from model1 and model2 based on the provided blending ratios. This merged model can then be used for further processing or as a final output in your AI art projects.

ModelMergeBlockNumber Usage Tips:

  • Experiment with different blending ratios for specific blocks to achieve a unique balance that highlights the strengths of both models.
  • Start with the default values and gradually adjust the ratios to see how each block influences the final merged model.
  • Use this node to combine models with complementary features, such as one model excelling in texture generation and another in color blending.

ModelMergeBlockNumber Common Errors and Solutions:

"Invalid model input"

  • Explanation: This error occurs when the provided models are not compatible or are not correctly formatted.
  • Solution: Ensure that both model1 and model2 are valid and compatible models. Verify their formats and try again.

"Blending ratio out of range"

  • Explanation: This error occurs when a blending ratio is set outside the acceptable range of 0.0 to 1.0.
  • Solution: Check all blending ratio parameters and ensure they are within the range of 0.0 to 1.0. Adjust any values that are out of range.

"Missing required input"

  • Explanation: This error occurs when one or more required input parameters are not provided.
  • Solution: Ensure that all required input parameters, including model1 and model2, are specified before executing the node.

ModelMergeBlockNumber Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_experiments
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.