aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorSakura-Luna <53183413+Sakura-Luna@users.noreply.github.com>2023-05-14 04:56:34 +0000
committerGitHub <noreply@github.com>2023-05-14 04:56:34 +0000
commit8abfc95013d247c8a863d048574bc1f9d1eb0443 (patch)
tree4d06581ad4d5b0e87a616114c1ac0b2d2c38d217 /modules
parent3078001439d25b66ef5627c9e3d431aa23bbed73 (diff)
downloadstable-diffusion-webui-gfx803-8abfc95013d247c8a863d048574bc1f9d1eb0443.tar.gz
stable-diffusion-webui-gfx803-8abfc95013d247c8a863d048574bc1f9d1eb0443.tar.bz2
stable-diffusion-webui-gfx803-8abfc95013d247c8a863d048574bc1f9d1eb0443.zip
Update script_callbacks.py
Diffstat (limited to 'modules')
-rw-r--r--modules/script_callbacks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/script_callbacks.py b/modules/script_callbacks.py
index e83c6ecf..57dfd457 100644
--- a/modules/script_callbacks.py
+++ b/modules/script_callbacks.py
@@ -64,7 +64,7 @@ class CFGDenoisedParams:
"""Total number of sampling steps planned"""
self.inner_model = inner_model
- """Inner model reference that is being used for denoising"""
+ """Inner model reference used for denoising"""
class AfterCFGCallbackParams:
@@ -79,7 +79,7 @@ class AfterCFGCallbackParams:
"""Total number of sampling steps planned"""
self.output_altered = False
- """A flag for CFGDenoiser that indicates whether the output has been altered by the callback"""
+ """A flag for CFGDenoiser indicating whether the output has been altered by the callback"""
class UiTrainTabParams:
@@ -360,9 +360,9 @@ def on_cfg_denoised(callback):
def on_cfg_after_cfg(callback):
- """register a function to be called in the kdiffussion cfg_denoiser method after cfg calculations has completed.
+ """register a function to be called in the kdiffussion cfg_denoiser method after cfg calculations are completed.
The callback is called with one argument:
- - params: CFGDenoisedParams - parameters to be passed to the inner model and sampling state details.
+ - params: AfterCFGCallbackParams - parameters to be passed to the script for post-processing after cfg calculation.
"""
add_callback(callback_map['callbacks_cfg_after_cfg'], callback)