Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
ed573613
Commit
ed573613
authored
Sep 26, 2022
by
DepFA
Committed by
AUTOMATIC1111
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass ddim_eta and ddim_discretize
parent
619668cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sd_samplers.py
modules/sd_samplers.py
+2
-2
No files found.
modules/sd_samplers.py
View file @
ed573613
...
...
@@ -120,9 +120,9 @@ class VanillaStableDiffusionSampler:
# existing code fails with cetain step counts, like 9
try
:
self
.
sampler
.
make_schedule
(
ddim_num_steps
=
steps
,
verbose
=
False
)
self
.
sampler
.
make_schedule
(
ddim_num_steps
=
steps
,
ddim_eta
=
opts
.
ddim_eta
,
ddim_discretize
=
opts
.
ddim_discretize
,
verbose
=
False
)
except
Exception
:
self
.
sampler
.
make_schedule
(
ddim_num_steps
=
steps
+
1
,
verbose
=
False
)
self
.
sampler
.
make_schedule
(
ddim_num_steps
=
steps
+
1
,
ddim_eta
=
opts
.
ddim_eta
,
ddim_discretize
=
opts
.
ddim_discretize
,
verbose
=
False
)
x1
=
self
.
sampler
.
stochastic_encode
(
x
,
torch
.
tensor
([
t_enc
]
*
int
(
x
.
shape
[
0
]))
.
to
(
shared
.
device
),
noise
=
noise
)
...
...
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