Unverified Commit e5480e36 authored by orionaskatu's avatar orionaskatu Committed by GitHub

Typo StableDiffuion

Small typo StableDiffuionModelHijack() => StableDiffusionModelHijack()
parent 93e7dbaa
...@@ -519,7 +519,7 @@ if os.path.exists(cmd_opts.gfpgan_dir): ...@@ -519,7 +519,7 @@ if os.path.exists(cmd_opts.gfpgan_dir):
print(traceback.format_exc(), file=sys.stderr) print(traceback.format_exc(), file=sys.stderr)
class StableDiffuionModelHijack: class StableDiffusionModelHijack:
ids_lookup = {} ids_lookup = {}
word_embeddings = {} word_embeddings = {}
word_embeddings_checksums = {} word_embeddings_checksums = {}
...@@ -1328,7 +1328,7 @@ sd_model = load_model_from_config(sd_config, cmd_opts.ckpt) ...@@ -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") 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) 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) model_hijack.hijack(sd_model)
demo = gr.TabbedInterface( demo = gr.TabbedInterface(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment