diff --git a/modules/modelloader.py b/modules/modelloader.py index f2274488..cb85ac4f 100644 --- a/modules/modelloader.py +++ b/modules/modelloader.py @@ -122,12 +122,9 @@ forbidden_upscaler_classes = set() def list_builtin_upscalers(): - load_upscalers() - builtin_upscaler_classes.clear() builtin_upscaler_classes.extend(Upscaler.__subclasses__()) - def forbid_loaded_nonbuiltin_upscalers(): for cls in Upscaler.__subclasses__(): if cls not in builtin_upscaler_classes: diff --git a/webui.py b/webui.py index 3ecc3f07..f770db54 100644 --- a/webui.py +++ b/webui.py @@ -187,6 +187,9 @@ def initialize(): modules.scripts.load_scripts() startup_timer.record("load scripts") + modelloader.load_upscalers() + #startup_timer.record("load upscalers") #Is this necessary? I don't know. + modules.sd_vae.refresh_vae_list() startup_timer.record("refresh VAE")