aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authororionaskatu <100234619+orionaskatu@users.noreply.github.com>2022-08-28 15:46:44 +0200
committerGitHub <noreply@github.com>2022-08-28 15:46:44 +0200
commite5480e368868f40c99d7f5d09efab994449fae7d (patch)
tree5c53889b562da12daf979242e160f4a88b394e86 /webui.py
parent93e7dbaa7164c3b7d1dcb6907d5908cc3fa29d30 (diff)
Typo StableDiffuion
Small typo StableDiffuionModelHijack() => StableDiffusionModelHijack()
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py4
1 files 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(