aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts.py
diff options
context:
space:
mode:
authorCodeHatchling <steve@codehatch.com>2023-12-07 05:25:53 +0000
committerCodeHatchling <steve@codehatch.com>2023-12-07 21:28:02 +0000
commit2abc417834d752e43a283f8603bfddfb1c80b30f (patch)
treeb6cdd6aa6014b856533e5d9ab8afc4e492e8f1cf /modules/scripts.py
parentac4578912395627731f2cd8529f87a95df1f7644 (diff)
downloadstable-diffusion-webui-gfx803-2abc417834d752e43a283f8603bfddfb1c80b30f.tar.gz
stable-diffusion-webui-gfx803-2abc417834d752e43a283f8603bfddfb1c80b30f.tar.bz2
stable-diffusion-webui-gfx803-2abc417834d752e43a283f8603bfddfb1c80b30f.zip
Re-implemented soft inpainting via a script. Also fixed some mistakes with the previous hooks, removed unnecessary formatting changes, removed code that I had forgotten to.
Diffstat (limited to 'modules/scripts.py')
-rw-r--r--modules/scripts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/scripts.py b/modules/scripts.py
index 92a07c56..b6fcf96e 100644
--- a/modules/scripts.py
+++ b/modules/scripts.py
@@ -12,12 +12,12 @@ from modules import shared, paths, script_callbacks, extensions, script_loading,
AlwaysVisible = object()
class MaskBlendArgs:
- def __init__(self, current_latent, nmask, init_latent, mask, blended_samples, denoiser=None, sigma=None):
+ def __init__(self, current_latent, nmask, init_latent, mask, blended_latent, denoiser=None, sigma=None):
self.current_latent = current_latent
self.nmask = nmask
self.init_latent = init_latent
self.mask = mask
- self.blended_samples = blended_samples
+ self.blended_latent = blended_latent
self.denoiser = denoiser
self.is_final_blend = denoiser is None