ComfyUI Node
h4 - Model Merger
A ComfyUI node in h4_ToolKit/Model Merging with 110 inputs and 5 outputs.
h4 - Model Merger
- model_override_1
- clip_override_1
- vae_override_1
- model_override_2
- clip_override_2
- vae_override_2
- model_override_3
- clip_override_3
- vae_override_3
- model_override_4
- clip_override_4
- vae_override_4
- MODEL
- CLIP
- VAE
- TEST_LATENT
- TEST_IMAGE
◄model_count2►
◄settingsfalse►
◄memory_managertrue►
◄testing_modefalse►
◄interpolation_modeSymmetric Average►
◄clip_sourceMerged►
◄vae_sourceModel 1►
◄ckpt_1▾►
◄ckpt_2▾►
◄ckpt_3▾►
◄ckpt_4▾►
◄test_seed0►
◄test_steps20►
◄test_cfg8.00►
◄test_samplereuler►
◄test_schedulernormal►
◄test_width512►
◄test_height512►
◄decode_test_imagefalse►
◄test_promptmasterpiece, best quality, a beautiful landscape►
◄w_11.00►
◄m1_in_001.00►
◄m1_in_011.00►
◄m1_in_021.00►
◄m1_in_031.00►
◄m1_in_041.00►
◄m1_in_051.00►
◄m1_in_061.00►
◄m1_in_071.00►
◄m1_in_081.00►
◄m1_in_091.00►
◄m1_in_101.00►
◄m1_in_111.00►
◄m1_mid1.00►
◄m1_out_001.00►
◄m1_out_011.00►
◄m1_out_021.00►
◄m1_out_031.00►
◄m1_out_041.00►
◄m1_out_051.00►
◄m1_out_061.00►
◄m1_out_071.00►
◄m1_out_081.00►
◄m1_out_091.00►
◄m1_out_101.00►
◄m1_out_111.00►
◄w_21.00►
◄m2_in_001.00►
◄m2_in_011.00►
◄m2_in_021.00►
◄m2_in_031.00►
◄m2_in_041.00►
◄m2_in_051.00►
◄m2_in_061.00►
◄m2_in_071.00►
◄m2_in_081.00►
◄m2_in_091.00►
◄m2_in_101.00►
◄m2_in_111.00►
◄m2_mid1.00►
◄m2_out_001.00►
◄m2_out_011.00►
◄m2_out_021.00►
◄m2_out_031.00►
◄m2_out_041.00►
◄m2_out_051.00►
◄m2_out_061.00►
◄m2_out_071.00►
◄m2_out_081.00►
◄m2_out_091.00►
◄m2_out_101.00►
◄m2_out_111.00►
◄w_31.00►
◄m3_in_001.00►
◄m3_in_011.00►
◄m3_in_021.00►
◄m3_in_031.00►
◄m3_in_041.00►
◄m3_in_051.00►
◄m3_in_061.00►
◄m3_in_071.00►
◄m3_in_081.00►
◄m3_in_091.00►
◄m3_in_101.00►
◄m3_in_111.00►
◄m3_mid1.00►
◄m3_out_001.00►
◄m3_out_011.00►
◄m3_out_021.00►
◄m3_out_031.00►
◄m3_out_041.00►
◄m3_out_051.00►
◄m3_out_061.00►
◄m3_out_071.00►
◄m3_out_081.00►
◄m3_out_091.00►
◄m3_out_101.00►
◄m3_out_111.00►
Categoryh4_ToolKit/Model Merging
Inputs (110)
| Name | Type | Default | Description |
|---|---|---|---|
| model_count | INT | 21–3 | How many models are we throwing into the pot? Choose between 2 to 3 models to blend together. |
| settings | BOOLEAN | false | Unlock the Mad Science Drawer! Reveals granular block-level weight controls for every model. |
| memory_manager | BOOLEAN | true | Optimized loading. Keeps VRAM usage low by loading/merging/unloading one model at a time. |
| testing_mode | BOOLEAN | false | Run a live test generation inside the node to verify your merge. |
| interpolation_modeopt | COMBO | Symmetric Average | Weighted Average: Base*(1-R) + Target*R. Symmetric Average: (M1*W1 + M2*W2 + M3*W3) / Total. |
| clip_sourceopt | COMBO | Merged | 4 options: Merged, Model 1, Model 2, Model 3 |
| vae_sourceopt | COMBO | Model 1 | 3 options: Model 1, Model 2, Model 3 |
| ckpt_1opt | COMBO | Base Model 1 | |
| model_override_1opt | MODEL | Override Model 1 | |
| clip_override_1opt | CLIP | Override CLIP 1 | |
| vae_override_1opt | VAE | Override VAE 1 | |
| ckpt_2opt | COMBO | Model 2 | |
| model_override_2opt | MODEL | Override Model 2 | |
| clip_override_2opt | CLIP | Override CLIP 2 | |
| vae_override_2opt | VAE | Override VAE 2 | |
| ckpt_3opt | COMBO | Model 3 | |
| model_override_3opt | MODEL | Override Model 3 | |
| clip_override_3opt | CLIP | Override CLIP 3 | |
| vae_override_3opt | VAE | Override VAE 3 | |
| ckpt_4opt | COMBO | Model 4 | |
| model_override_4opt | MODEL | Override Model 4 | |
| clip_override_4opt | CLIP | Override CLIP 4 | |
| vae_override_4opt | VAE | Override VAE 4 | |
| test_seedopt | INT | 00–18446744073709550000 | — |
| test_stepsopt | INT | 201–100 | — |
| test_cfgopt | FLOAT | 8.000–100 | — |
| test_sampleropt | COMBO | euler | 44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38 |
| test_scheduleropt | COMBO | normal | 9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3 |
| test_widthopt | INT | 51264–4096 | Width of the test generation image. |
| test_heightopt | INT | 51264–4096 | Height of the test generation image. |
| decode_test_imageopt | BOOLEAN | false | If OFF, skips the potentially slow/heavy VAE Decode step. The node will output a placeholder image and the real LATENT. |
| test_promptopt | STRING | masterpiece, best quality, a beautiful landscape | — |
| w_1opt | FLOAT | 1.000–1 | Global influence of Model 1. Acts as a multiplier for all block weights below. |
| m1_in_00opt | FLOAT | 1.000–1 | Model 1 Input Block 0: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_01opt | FLOAT | 1.000–1 | Model 1 Input Block 1: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_02opt | FLOAT | 1.000–1 | Model 1 Input Block 2: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_03opt | FLOAT | 1.000–1 | Model 1 Input Block 3: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_04opt | FLOAT | 1.000–1 | Model 1 Input Block 4: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_05opt | FLOAT | 1.000–1 | Model 1 Input Block 5: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_06opt | FLOAT | 1.000–1 | Model 1 Input Block 6: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_07opt | FLOAT | 1.000–1 | Model 1 Input Block 7: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_08opt | FLOAT | 1.000–1 | Model 1 Input Block 8: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_09opt | FLOAT | 1.000–1 | Model 1 Input Block 9: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_10opt | FLOAT | 1.000–1 | Model 1 Input Block 10: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_in_11opt | FLOAT | 1.000–1 | Model 1 Input Block 11: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m1_midopt | FLOAT | 1.000–1 | Model 1 Middle Block: The core processing. Often affects the fundamental 'soul' or coherence of the image. |
| m1_out_00opt | FLOAT | 1.000–1 | Model 1 Output Block 0: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_01opt | FLOAT | 1.000–1 | Model 1 Output Block 1: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_02opt | FLOAT | 1.000–1 | Model 1 Output Block 2: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_03opt | FLOAT | 1.000–1 | Model 1 Output Block 3: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_04opt | FLOAT | 1.000–1 | Model 1 Output Block 4: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_05opt | FLOAT | 1.000–1 | Model 1 Output Block 5: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_06opt | FLOAT | 1.000–1 | Model 1 Output Block 6: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_07opt | FLOAT | 1.000–1 | Model 1 Output Block 7: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_08opt | FLOAT | 1.000–1 | Model 1 Output Block 8: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_09opt | FLOAT | 1.000–1 | Model 1 Output Block 9: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_10opt | FLOAT | 1.000–1 | Model 1 Output Block 10: Controls the refinement and final look. Affects textures, lighting, and style. |
| m1_out_11opt | FLOAT | 1.000–1 | Model 1 Output Block 11: Controls the refinement and final look. Affects textures, lighting, and style. |
| w_2opt | FLOAT | 1.000–1 | Global influence of Model 2. Acts as a multiplier for all block weights below. |
| m2_in_00opt | FLOAT | 1.000–1 | Model 2 Input Block 0: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_01opt | FLOAT | 1.000–1 | Model 2 Input Block 1: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_02opt | FLOAT | 1.000–1 | Model 2 Input Block 2: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_03opt | FLOAT | 1.000–1 | Model 2 Input Block 3: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_04opt | FLOAT | 1.000–1 | Model 2 Input Block 4: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_05opt | FLOAT | 1.000–1 | Model 2 Input Block 5: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_06opt | FLOAT | 1.000–1 | Model 2 Input Block 6: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_07opt | FLOAT | 1.000–1 | Model 2 Input Block 7: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_08opt | FLOAT | 1.000–1 | Model 2 Input Block 8: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_09opt | FLOAT | 1.000–1 | Model 2 Input Block 9: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_10opt | FLOAT | 1.000–1 | Model 2 Input Block 10: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_in_11opt | FLOAT | 1.000–1 | Model 2 Input Block 11: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m2_midopt | FLOAT | 1.000–1 | Model 2 Middle Block: The core processing. Often affects the fundamental 'soul' or coherence of the image. |
| m2_out_00opt | FLOAT | 1.000–1 | Model 2 Output Block 0: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_01opt | FLOAT | 1.000–1 | Model 2 Output Block 1: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_02opt | FLOAT | 1.000–1 | Model 2 Output Block 2: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_03opt | FLOAT | 1.000–1 | Model 2 Output Block 3: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_04opt | FLOAT | 1.000–1 | Model 2 Output Block 4: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_05opt | FLOAT | 1.000–1 | Model 2 Output Block 5: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_06opt | FLOAT | 1.000–1 | Model 2 Output Block 6: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_07opt | FLOAT | 1.000–1 | Model 2 Output Block 7: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_08opt | FLOAT | 1.000–1 | Model 2 Output Block 8: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_09opt | FLOAT | 1.000–1 | Model 2 Output Block 9: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_10opt | FLOAT | 1.000–1 | Model 2 Output Block 10: Controls the refinement and final look. Affects textures, lighting, and style. |
| m2_out_11opt | FLOAT | 1.000–1 | Model 2 Output Block 11: Controls the refinement and final look. Affects textures, lighting, and style. |
| w_3opt | FLOAT | 1.000–1 | Global influence of Model 3. Acts as a multiplier for all block weights below. |
| m3_in_00opt | FLOAT | 1.000–1 | Model 3 Input Block 0: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_01opt | FLOAT | 1.000–1 | Model 3 Input Block 1: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_02opt | FLOAT | 1.000–1 | Model 3 Input Block 2: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_03opt | FLOAT | 1.000–1 | Model 3 Input Block 3: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_04opt | FLOAT | 1.000–1 | Model 3 Input Block 4: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_05opt | FLOAT | 1.000–1 | Model 3 Input Block 5: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_06opt | FLOAT | 1.000–1 | Model 3 Input Block 6: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_07opt | FLOAT | 1.000–1 | Model 3 Input Block 7: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_08opt | FLOAT | 1.000–1 | Model 3 Input Block 8: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_09opt | FLOAT | 1.000–1 | Model 3 Input Block 9: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_10opt | FLOAT | 1.000–1 | Model 3 Input Block 10: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_in_11opt | FLOAT | 1.000–1 | Model 3 Input Block 11: Controls the flow of data into the UNet. Lower blocks affect composition/layout, higher blocks affect details. |
| m3_midopt | FLOAT | 1.000–1 | Model 3 Middle Block: The core processing. Often affects the fundamental 'soul' or coherence of the image. |
| m3_out_00opt | FLOAT | 1.000–1 | Model 3 Output Block 0: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_01opt | FLOAT | 1.000–1 | Model 3 Output Block 1: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_02opt | FLOAT | 1.000–1 | Model 3 Output Block 2: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_03opt | FLOAT | 1.000–1 | Model 3 Output Block 3: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_04opt | FLOAT | 1.000–1 | Model 3 Output Block 4: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_05opt | FLOAT | 1.000–1 | Model 3 Output Block 5: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_06opt | FLOAT | 1.000–1 | Model 3 Output Block 6: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_07opt | FLOAT | 1.000–1 | Model 3 Output Block 7: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_08opt | FLOAT | 1.000–1 | Model 3 Output Block 8: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_09opt | FLOAT | 1.000–1 | Model 3 Output Block 9: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_10opt | FLOAT | 1.000–1 | Model 3 Output Block 10: Controls the refinement and final look. Affects textures, lighting, and style. |
| m3_out_11opt | FLOAT | 1.000–1 | Model 3 Output Block 11: Controls the refinement and final look. Affects textures, lighting, and style. |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |
| CLIP | CLIP | — |
| VAE | VAE | — |
| TEST_LATENT | LATENT | — |
| TEST_IMAGE | IMAGE | — |