Skip to content

Commit

Permalink
Quickfix Enum Issue 2 (#2849)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored May 5, 2024
1 parent 86288de commit 2c59fec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,12 @@ def recolor_intensity_post_processing(x, i):
weight = param.weight

h, w, hr_y, hr_x = Script.get_target_dimensions(p)
pulid_mode = PuLIDMode(unit.pulid_mode) if isinstance(unit.pulid_mode, str) else unit.pulid_mode
# TODO: Fix all enum issue
if unit.pulid_mode == "PuLIDMode.FIDELITY":
pulid_mode = PuLIDMode.FIDELITY
else:
pulid_mode = PuLIDMode(unit.pulid_mode)

if pulid_mode == PuLIDMode.STYLE:
pulid_attn_setting = PULID_SETTING_STYLE
else:
Expand Down

0 comments on commit 2c59fec

Please sign in to comment.