aboutsummaryrefslogtreecommitdiffstats
path: root/modules/script_callbacks.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-30 04:27:13 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-30 05:23:37 +0000
commit642faa1f6555b6522ee45a0275b87c61a34813f8 (patch)
treeb83743f26c06fdef524eacc5980526bca397d0c4 /modules/script_callbacks.py
parenta0af2852b67859b427b662789d0b42f592e78dec (diff)
downloadstable-diffusion-webui-gfx803-642faa1f6555b6522ee45a0275b87c61a34813f8.tar.gz
stable-diffusion-webui-gfx803-642faa1f6555b6522ee45a0275b87c61a34813f8.tar.bz2
stable-diffusion-webui-gfx803-642faa1f6555b6522ee45a0275b87c61a34813f8.zip
Merge pull request #12856 from catboxanon/extra-noise-noisy-latent
Add noisy latent to `ExtraNoiseParams` for callback
Diffstat (limited to 'modules/script_callbacks.py')
-rw-r--r--modules/script_callbacks.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/script_callbacks.py b/modules/script_callbacks.py
index fab23551..c99695eb 100644
--- a/modules/script_callbacks.py
+++ b/modules/script_callbacks.py
@@ -29,12 +29,15 @@ class ImageSaveParams:
class ExtraNoiseParams:
- def __init__(self, noise, x):
+ def __init__(self, noise, x, xi):
self.noise = noise
"""Random noise generated by the seed"""
self.x = x
- """Latent image representation of the image"""
+ """Latent representation of the image"""
+
+ self.xi = xi
+ """Noisy latent representation of the image"""
class CFGDenoiserParams: