We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c543ad8 commit d9dc02aCopy full SHA for d9dc02a
comfy_extras/nodes_model_patch.py
@@ -244,6 +244,10 @@ def load_model_patch(self, name):
244
elif 'control_all_x_embedder.2-1.weight' in sd: # alipai z image fun controlnet
245
sd = z_image_convert(sd)
246
config = {}
247
+ if 'control_layers.4.adaLN_modulation.0.weight' not in sd:
248
+ config['n_control_layers'] = 3
249
+ config['additional_in_dim'] = 17
250
+ config['refiner_control'] = True
251
if 'control_layers.14.adaLN_modulation.0.weight' in sd:
252
config['n_control_layers'] = 15
253
config['additional_in_dim'] = 17
0 commit comments