Skip to content

Commit

Permalink
📝 Explain why guidance_end is set twice (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jul 1, 2023
1 parent 8e143d3 commit 30cc2ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/controlnet.py
Expand Up @@ -422,6 +422,8 @@ def parse_remote_call(p, unit: external_code.ControlNetUnit, idx):
unit.threshold_b = selector(p, "control_net_pthr_b", unit.threshold_b, idx)
unit.guidance_start = selector(p, "control_net_guidance_start", unit.guidance_start, idx)
unit.guidance_end = selector(p, "control_net_guidance_end", unit.guidance_end, idx)
# Backward compatibility. See https://github.com/Mikubill/sd-webui-controlnet/issues/1740
# for more details.
unit.guidance_end = selector(p, "control_net_guidance_strength", unit.guidance_end, idx)
unit.control_mode = selector(p, "control_net_control_mode", unit.control_mode, idx)
unit.pixel_perfect = selector(p, "control_net_pixel_perfect", unit.pixel_perfect, idx)
Expand Down

0 comments on commit 30cc2ec

Please sign in to comment.