aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_hijack_inpainting.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-12-24 06:58:28 +0000
committerGitHub <noreply@github.com>2022-12-24 06:58:28 +0000
commitfac92610d22d1166890b17b167c034090a096e5a (patch)
tree059e9c4d3314278472b8f4e1b0a14b59952d7973 /modules/sd_hijack_inpainting.py
parent94450b88775ee14392d05ef6a8fc915b93946b9e (diff)
parentc0355caefe3d82e304e6d832699d581fc8f9fbf9 (diff)
downloadstable-diffusion-webui-gfx803-fac92610d22d1166890b17b167c034090a096e5a.tar.gz
stable-diffusion-webui-gfx803-fac92610d22d1166890b17b167c034090a096e5a.tar.bz2
stable-diffusion-webui-gfx803-fac92610d22d1166890b17b167c034090a096e5a.zip
Merge pull request #5753 from calvinballing/master
Fix various typos
Diffstat (limited to 'modules/sd_hijack_inpainting.py')
-rw-r--r--modules/sd_hijack_inpainting.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/sd_hijack_inpainting.py b/modules/sd_hijack_inpainting.py
index 5018b047..85e7281f 100644
--- a/modules/sd_hijack_inpainting.py
+++ b/modules/sd_hijack_inpainting.py
@@ -209,7 +209,7 @@ def p_sample_plms(self, x, c, t, index, repeat_noise=False, use_original_steps=F
else:
x_in = torch.cat([x] * 2)
t_in = torch.cat([t] * 2)
-
+
if isinstance(c, dict):
assert isinstance(unconditional_conditioning, dict)
c_in = dict()
@@ -278,7 +278,7 @@ def p_sample_plms(self, x, c, t, index, repeat_noise=False, use_original_steps=F
x_prev, pred_x0 = get_x_prev_and_pred_x0(e_t_prime, index)
return x_prev, pred_x0, e_t
-
+
# =================================================================================================
# Monkey patch LatentInpaintDiffusion to load the checkpoint with a proper config.
# Adapted from:
@@ -325,7 +325,7 @@ def should_hijack_inpainting(checkpoint_info):
def do_inpainting_hijack():
# most of this stuff seems to no longer be needed because it is already included into SD2.0
# p_sample_plms is needed because PLMS can't work with dicts as conditionings
- # this file should be cleaned up later if weverything tuens out to work fine
+ # this file should be cleaned up later if everything turns out to work fine
# ldm.models.diffusion.ddpm.get_unconditional_conditioning = get_unconditional_conditioning
# ldm.models.diffusion.ddpm.LatentInpaintDiffusion = LatentInpaintDiffusion