The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Now the model merge blocks node will use the longest match.
comfyanonymousc02f3baeaf00
diff --git a/comfy_extras/nodes_model_merging.py b/comfy_extras/nodes_model_merging.pyindex 72eeffb39..9bbb84da4 100644--- a/comfy_extras/nodes_model_merging.py+++ b/comfy_extras/nodes_model_merging.py@@ -46,9 +46,11 @@ class ModelMergeBlocks:ratio = default_ratiok_unet = k[len("diffusion_model."):]+ last_arg_size = 0for arg in kwargs:- if k_unet.startswith(arg):+ if k_unet.startswith(arg) and last_arg_size < len(arg):ratio = kwargs[arg]+ last_arg_size = len(arg)m.add_patches({k: (sd[k], )}, 1.0 - ratio, ratio)return (m, )