Skip to content

Commit

Permalink
fix Sampler Scheduler autocorrection warning
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Jun 20, 2024
1 parent 9e0f6d2 commit 7b57e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sd_samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def get_sampler_and_scheduler(sampler_name, scheduler_name):
def fix_p_invalid_sampler_and_scheduler(p):
i_sampler_name, i_scheduler = p.sampler_name, p.scheduler
p.sampler_name, p.scheduler = get_sampler_and_scheduler(p.sampler_name, p.scheduler)
if p.sampler_name != i_sampler_name or i_scheduler != p.scheduler:
if p.sampler_name != i_sampler_name or (p.scheduler != 'Automatic' and i_scheduler != p.scheduler):
logging.warning(f'Sampler Scheduler autocorrection: "{i_sampler_name}" -> "{p.sampler_name}", "{i_scheduler}" -> "{p.scheduler}"')


Expand Down

0 comments on commit 7b57e2f

Please sign in to comment.