Skip to content

Commit

Permalink
Quick fix enum issue
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed May 4, 2024
1 parent d702830 commit 49e1bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ 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)
pulid_mode = PuLIDMode(unit.pulid_mode) if isinstance(unit.pulid_mode, str) else unit.pulid_mode
if pulid_mode == PuLIDMode.STYLE:
pulid_attn_setting = PULID_SETTING_STYLE
else:
Expand Down

0 comments on commit 49e1bed

Please sign in to comment.