Skip to content

Commit e172564

Browse files
authored
Update controlnet.py to fix the default controlnet weight as constant (comfyanonymous#4285)
1 parent a3cc326 commit e172564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy/controlnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def load_controlnet_hunyuandit(controlnet_data):
423423

424424
latent_format = comfy.latent_formats.SDXL()
425425
extra_conds = ['text_embedding_mask', 'encoder_hidden_states_t5', 'text_embedding_mask_t5', 'image_meta_size', 'style', 'cos_cis_img', 'sin_cis_img']
426-
control = ControlNet(control_model, compression_ratio=1, latent_format=latent_format, load_device=load_device, manual_cast_dtype=manual_cast_dtype, extra_conds=extra_conds, strength_type=StrengthType.LINEAR_UP)
426+
control = ControlNet(control_model, compression_ratio=1, latent_format=latent_format, load_device=load_device, manual_cast_dtype=manual_cast_dtype, extra_conds=extra_conds, strength_type=StrengthType.CONSTANT)
427427
return control
428428

429429
def load_controlnet(ckpt_path, model=None):

0 commit comments

Comments
 (0)