disable intermediate results on LCM sampler

prevents image result clogging due to LCM being so fast
This commit is contained in:
Manuel Schmid 2023-11-23 00:34:08 +01:00
parent 99f7b6e6d4
commit 44c6ddb731
2 changed files with 4 additions and 5 deletions

View File

@ -34,11 +34,10 @@ default_parameters = {
inpaint_engine_versions = ['None', 'v1', 'v2.5', 'v2.6']
performance_selections = [
(f'Speed <span style="color: grey;"> \U00002223 30 steps</span>', 'Speed'),
(f'Quality <span style="color: grey;"> \U00002223 60 steps</span>', 'Quality'),
(f'Extreme Speed <span style="color: grey;"> \U00002223 8 steps, LCM</span>', 'Extreme Speed')
('Quality <span style="color: grey;"> \U00002223 60 steps</span>', 'Quality'),
('Speed <span style="color: grey;"> \U00002223 30 steps</span>', 'Speed'),
('Extreme Speed (LCM) <span style="color: grey;"> \U00002223 8 steps, intermediate results disabled</span>', 'Extreme Speed')
]
inpaint_option_default = 'Inpaint or Outpaint (default)'

View File

@ -63,7 +63,7 @@ def generate_clicked(task):
if flag == 'results':
yield gr.update(visible=True), \
gr.update(visible=True), \
gr.update(visible=True, value=product) if not advanced_parameters.disable_intermediate_results else gr.update(), \
gr.update(visible=True, value=product) if not advanced_parameters.disable_intermediate_results and advanced_parameters.sampler_name != 'lcm' else gr.update(), \
gr.update(visible=False)
if flag == 'finish':
yield gr.update(visible=False), \