The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Support "lite" version of alibaba-pai Z-Image Controlnet (#11849)
Aclyd9dc02a7d602
diff --git a/comfy_extras/nodes_model_patch.py b/comfy_extras/nodes_model_patch.pyindex 1355b3c93..f66d28fc9 100644--- a/comfy_extras/nodes_model_patch.py+++ b/comfy_extras/nodes_model_patch.py@@ -244,6 +244,10 @@ class ModelPatchLoader:elif 'control_all_x_embedder.2-1.weight' in sd: # alipai z image fun controlnetsd = z_image_convert(sd)config = {}+ if 'control_layers.4.adaLN_modulation.0.weight' not in sd:+ config['n_control_layers'] = 3+ config['additional_in_dim'] = 17+ config['refiner_control'] = Trueif 'control_layers.14.adaLN_modulation.0.weight' in sd:config['n_control_layers'] = 15config['additional_in_dim'] = 17