Merge pull request #10946 from AUTOMATIC1111/fix-duplicate-optimizers

Fix duplicate Cross attention optimization after UI reload
This commit is contained in:
AUTOMATIC1111 2023-06-03 09:24:54 +03:00 committed by GitHub
commit e0d8ce3d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -469,10 +469,6 @@ def webui():
startup_timer.record("scripts unloaded callback") startup_timer.record("scripts unloaded callback")
initialize_rest(reload_script_modules=True) initialize_rest(reload_script_modules=True)
modules.script_callbacks.on_list_optimizers(modules.sd_hijack_optimizations.list_optimizers)
modules.sd_hijack.list_optimizers()
startup_timer.record("scripts list_optimizers")
if __name__ == "__main__": if __name__ == "__main__":
if cmd_opts.nowebui: if cmd_opts.nowebui: