Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
8abfc950
Commit
8abfc950
authored
May 14, 2023
by
Sakura-Luna
Committed by
GitHub
May 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update script_callbacks.py
parent
30780014
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/script_callbacks.py
modules/script_callbacks.py
+4
-4
No files found.
modules/script_callbacks.py
View file @
8abfc950
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment