aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-16 06:47:03 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-16 06:47:03 +0000
commit87e8b9a2ab3f033e7fdadbb2fe258857915980ac (patch)
tree45d322f4d363f56fb5eccdccd27bbd9d4e0ce568 /modules/processing.py
parent9d40212485febe05a662dd0346e6def83e456288 (diff)
downloadstable-diffusion-webui-gfx803-87e8b9a2ab3f033e7fdadbb2fe258857915980ac.tar.gz
stable-diffusion-webui-gfx803-87e8b9a2ab3f033e7fdadbb2fe258857915980ac.tar.bz2
stable-diffusion-webui-gfx803-87e8b9a2ab3f033e7fdadbb2fe258857915980ac.zip
prevent replacing torch_randn globally (instead replacing k_diffusion.sampling.torch) and add a setting to disable this all
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index aab72903..5abdfd7c 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -122,7 +122,7 @@ 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 p is not None and p.sampler is not None and len(seeds) > 1:
+ 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:
sampler_noises = None