mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
diffusers better model autodetect
This commit is contained in:
+3
-2
@@ -991,9 +991,10 @@ def create_ui(startup_timer = None):
|
||||
modules.shared.opts.sd_backend = "diffusers"
|
||||
try:
|
||||
opts.save(modules.shared.config_filename)
|
||||
log.info(f'Settings changed: {len(changed)} {changed}')
|
||||
if len(changed) > 0:
|
||||
log.info(f'Settings: changed={len(changed)} {changed}')
|
||||
except RuntimeError:
|
||||
log.error(f'Settings change failed: {len(changed)} {changed}')
|
||||
log.error(f'Settings failed: change={len(changed)} {changed}')
|
||||
return opts.dumpjson(), f'{len(changed)} Settings changed without save: {", ".join(changed)}'
|
||||
return opts.dumpjson(), f'{len(changed)} Settings changed{": " if len(changed) > 0 else ""}{", ".join(changed)}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user