From e5480e368868f40c99d7f5d09efab994449fae7d Mon Sep 17 00:00:00 2001 From: orionaskatu <100234619+orionaskatu@users.noreply.github.com> Date: Sun, 28 Aug 2022 15:46:44 +0200 Subject: [PATCH] Typo StableDiffuion Small typo StableDiffuionModelHijack() => StableDiffusionModelHijack() --- webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui.py b/webui.py index b14b7f61..56cf172a 100644 --- a/webui.py +++ b/webui.py @@ -519,7 +519,7 @@ if os.path.exists(cmd_opts.gfpgan_dir): print(traceback.format_exc(), file=sys.stderr) -class StableDiffuionModelHijack: +class StableDiffusionModelHijack: ids_lookup = {} word_embeddings = {} word_embeddings_checksums = {} @@ -1328,7 +1328,7 @@ sd_model = load_model_from_config(sd_config, cmd_opts.ckpt) device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu") sd_model = (sd_model if cmd_opts.no_half else sd_model.half()).to(device) -model_hijack = StableDiffuionModelHijack() +model_hijack = StableDiffusionModelHijack() model_hijack.hijack(sd_model) demo = gr.TabbedInterface(