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
d1a70c3f
Commit
d1a70c3f
authored
Aug 13, 2023
by
catboxanon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add s_noise param to more samplers
parent
1ae9dacb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
modules/sd_samplers_common.py
modules/sd_samplers_common.py
+4
-4
modules/sd_samplers_kdiffusion.py
modules/sd_samplers_kdiffusion.py
+6
-0
No files found.
modules/sd_samplers_common.py
View file @
d1a70c3f
...
@@ -276,19 +276,19 @@ class Sampler:
...
@@ -276,19 +276,19 @@ class Sampler:
s_tmax
=
getattr
(
opts
,
's_tmax'
,
p
.
s_tmax
)
or
self
.
s_tmax
# 0 = inf
s_tmax
=
getattr
(
opts
,
's_tmax'
,
p
.
s_tmax
)
or
self
.
s_tmax
# 0 = inf
s_noise
=
getattr
(
opts
,
's_noise'
,
p
.
s_noise
)
s_noise
=
getattr
(
opts
,
's_noise'
,
p
.
s_noise
)
if
s_churn
!=
self
.
s_churn
:
if
's_churn'
in
extra_params_kwargs
and
s_churn
!=
self
.
s_churn
:
extra_params_kwargs
[
's_churn'
]
=
s_churn
extra_params_kwargs
[
's_churn'
]
=
s_churn
p
.
s_churn
=
s_churn
p
.
s_churn
=
s_churn
p
.
extra_generation_params
[
'Sigma churn'
]
=
s_churn
p
.
extra_generation_params
[
'Sigma churn'
]
=
s_churn
if
s_tmin
!=
self
.
s_tmin
:
if
's_tmin'
in
extra_params_kwargs
and
s_tmin
!=
self
.
s_tmin
:
extra_params_kwargs
[
's_tmin'
]
=
s_tmin
extra_params_kwargs
[
's_tmin'
]
=
s_tmin
p
.
s_tmin
=
s_tmin
p
.
s_tmin
=
s_tmin
p
.
extra_generation_params
[
'Sigma tmin'
]
=
s_tmin
p
.
extra_generation_params
[
'Sigma tmin'
]
=
s_tmin
if
s_tmax
!=
self
.
s_tmax
:
if
's_tmax'
in
extra_params_kwargs
and
s_tmax
!=
self
.
s_tmax
:
extra_params_kwargs
[
's_tmax'
]
=
s_tmax
extra_params_kwargs
[
's_tmax'
]
=
s_tmax
p
.
s_tmax
=
s_tmax
p
.
s_tmax
=
s_tmax
p
.
extra_generation_params
[
'Sigma tmax'
]
=
s_tmax
p
.
extra_generation_params
[
'Sigma tmax'
]
=
s_tmax
if
s_noise
!=
self
.
s_noise
:
if
's_noise'
in
extra_params_kwargs
and
s_noise
!=
self
.
s_noise
:
extra_params_kwargs
[
's_noise'
]
=
s_noise
extra_params_kwargs
[
's_noise'
]
=
s_noise
p
.
s_noise
=
s_noise
p
.
s_noise
=
s_noise
p
.
extra_generation_params
[
'Sigma noise'
]
=
s_noise
p
.
extra_generation_params
[
'Sigma noise'
]
=
s_noise
...
...
modules/sd_samplers_kdiffusion.py
View file @
d1a70c3f
...
@@ -45,6 +45,12 @@ sampler_extra_params = {
...
@@ -45,6 +45,12 @@ sampler_extra_params = {
'sample_euler'
:
[
's_churn'
,
's_tmin'
,
's_tmax'
,
's_noise'
],
'sample_euler'
:
[
's_churn'
,
's_tmin'
,
's_tmax'
,
's_noise'
],
'sample_heun'
:
[
's_churn'
,
's_tmin'
,
's_tmax'
,
's_noise'
],
'sample_heun'
:
[
's_churn'
,
's_tmin'
,
's_tmax'
,
's_noise'
],
'sample_dpm_2'
:
[
's_churn'
,
's_tmin'
,
's_tmax'
,
's_noise'
],
'sample_dpm_2'
:
[
's_churn'
,
's_tmin'
,
's_tmax'
,
's_noise'
],
'sample_dpm_fast'
:
[
's_noise'
],
'sample_dpm_2_ancestral'
:
[
's_noise'
],
'sample_dpmpp_2s_ancestral'
:
[
's_noise'
],
'sample_dpmpp_sde'
:
[
's_noise'
],
'sample_dpmpp_2m_sde'
:
[
's_noise'
],
'sample_dpmpp_3m_sde'
:
[
's_noise'
],
}
}
k_diffusion_samplers_map
=
{
x
.
name
:
x
for
x
in
samplers_data_k_diffusion
}
k_diffusion_samplers_map
=
{
x
.
name
:
x
for
x
in
samplers_data_k_diffusion
}
...
...
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