Skip to content

Commit

Permalink
Update controlnet.py to fix the default controlnet weight as constant (
Browse files Browse the repository at this point in the history
  • Loading branch information
TTPlanetPig authored Aug 9, 2024
1 parent a3cc326 commit e172564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def load_controlnet_hunyuandit(controlnet_data):

latent_format = comfy.latent_formats.SDXL()
extra_conds = ['text_embedding_mask', 'encoder_hidden_states_t5', 'text_embedding_mask_t5', 'image_meta_size', 'style', 'cos_cis_img', 'sin_cis_img']
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)
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)
return control

def load_controlnet(ckpt_path, model=None):
Expand Down

0 comments on commit e172564

Please sign in to comment.