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
7f200512
Commit
7f200512
authored
Mar 11, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename CFGDenoiserParams fields for #8064
parent
af416a2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
modules/script_callbacks.py
modules/script_callbacks.py
+5
-5
modules/sd_samplers_kdiffusion.py
modules/sd_samplers_kdiffusion.py
+2
-2
No files found.
modules/script_callbacks.py
View file @
7f200512
...
...
@@ -29,7 +29,7 @@ class ImageSaveParams:
class
CFGDenoiserParams
:
def
__init__
(
self
,
x
,
image_cond
,
sigma
,
sampling_step
,
total_sampling_steps
,
te
nsor
,
uncond
):
def
__init__
(
self
,
x
,
image_cond
,
sigma
,
sampling_step
,
total_sampling_steps
,
te
xt_cond
,
text_
uncond
):
self
.
x
=
x
"""Latent image representation in the process of being denoised"""
...
...
@@ -45,11 +45,11 @@ class CFGDenoiserParams:
self
.
total_sampling_steps
=
total_sampling_steps
"""Total number of sampling steps planned"""
self
.
te
nsor
=
tensor
""" Encoder hidden states of
conditioning
"""
self
.
te
xt_cond
=
text_cond
""" Encoder hidden states of
text conditioning from prompt
"""
self
.
uncond
=
uncond
""" Encoder hidden states of
unconditioning
"""
self
.
text_uncond
=
text_
uncond
""" Encoder hidden states of
text conditioning from negative prompt
"""
class
CFGDenoisedParams
:
...
...
modules/sd_samplers_kdiffusion.py
View file @
7f200512
...
...
@@ -106,8 +106,8 @@ class CFGDenoiser(torch.nn.Module):
x_in
=
denoiser_params
.
x
image_cond_in
=
denoiser_params
.
image_cond
sigma_in
=
denoiser_params
.
sigma
tensor
=
denoiser_params
.
te
nsor
uncond
=
denoiser_params
.
uncond
tensor
=
denoiser_params
.
te
xt_cond
uncond
=
denoiser_params
.
text_
uncond
if
tensor
.
shape
[
1
]
==
uncond
.
shape
[
1
]:
if
not
is_edit_model
:
...
...
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