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
b8cf2ea8
Commit
b8cf2ea8
authored
Sep 16, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a bit of a comment about what's being done with tensor noise
parent
83bce1a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
processing.py
modules/processing.py
+4
-0
No files found.
modules/processing.py
View file @
b8cf2ea8
...
...
@@ -122,6 +122,10 @@ def slerp(val, low, high):
def
create_random_tensors
(
shape
,
seeds
,
subseeds
=
None
,
subseed_strength
=
0.0
,
seed_resize_from_h
=
0
,
seed_resize_from_w
=
0
,
p
=
None
):
xs
=
[]
# if we have multiple seeds, this means we are working with batch size>1; this then
# enables the generation of additional tensors with noise that the sampler will use during its processing.
# Using those pre-genrated tensors instead of siimple torch.randn allows a batch with seeds [100, 101] to
# produce the same images as with two batches [100], [101].
if
p
is
not
None
and
p
.
sampler
is
not
None
and
len
(
seeds
)
>
1
and
opts
.
enable_batch_seeds
:
sampler_noises
=
[[]
for
_
in
range
(
p
.
sampler
.
number_of_needed_noises
(
p
))]
else
:
...
...
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