inspiration finished

This commit is contained in:
yfszzx
2022-10-22 01:23:00 +08:00
parent dc66540629
commit bb0f1a2cda
5 changed files with 151 additions and 79 deletions

View File

@@ -72,6 +72,7 @@ def wrap_gradio_gpu_call(func, extra_outputs=None):
return modules.ui.wrap_gradio_call(f, extra_outputs=extra_outputs)
def initialize():
modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
if cmd_opts.ui_debug_mode:
class enmpty():
name = None
@@ -84,7 +85,7 @@ def initialize():
shared.face_restorers.append(modules.face_restoration.FaceRestoration())
modelloader.load_upscalers()
modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
shared.sd_model = modules.sd_models.load_model()
shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights(shared.sd_model)))