Merge pull request #10025 from acncagua/Upscaler_initialization
Initialize the upscalers
This commit is contained in:
commit
b3a44385b1
@ -122,12 +122,9 @@ forbidden_upscaler_classes = set()
|
|||||||
|
|
||||||
|
|
||||||
def list_builtin_upscalers():
|
def list_builtin_upscalers():
|
||||||
load_upscalers()
|
|
||||||
|
|
||||||
builtin_upscaler_classes.clear()
|
builtin_upscaler_classes.clear()
|
||||||
builtin_upscaler_classes.extend(Upscaler.__subclasses__())
|
builtin_upscaler_classes.extend(Upscaler.__subclasses__())
|
||||||
|
|
||||||
|
|
||||||
def forbid_loaded_nonbuiltin_upscalers():
|
def forbid_loaded_nonbuiltin_upscalers():
|
||||||
for cls in Upscaler.__subclasses__():
|
for cls in Upscaler.__subclasses__():
|
||||||
if cls not in builtin_upscaler_classes:
|
if cls not in builtin_upscaler_classes:
|
||||||
|
3
webui.py
3
webui.py
@ -187,6 +187,9 @@ def initialize():
|
|||||||
modules.scripts.load_scripts()
|
modules.scripts.load_scripts()
|
||||||
startup_timer.record("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()
|
modules.sd_vae.refresh_vae_list()
|
||||||
startup_timer.record("refresh VAE")
|
startup_timer.record("refresh VAE")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user