aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-12-03 15:05:47 +0000
committerVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-12-03 15:05:47 +0000
commitcf3e844d1d31d64f3234a0fbdfcac91cc5834657 (patch)
treefe3310f6f5b15075920f3ba7b72c568215070d94 /modules/processing.py
parent46b0d230e7c13e247eabb22e1103ce512e7ed6b1 (diff)
downloadstable-diffusion-webui-gfx803-cf3e844d1d31d64f3234a0fbdfcac91cc5834657.tar.gz
stable-diffusion-webui-gfx803-cf3e844d1d31d64f3234a0fbdfcac91cc5834657.tar.bz2
stable-diffusion-webui-gfx803-cf3e844d1d31d64f3234a0fbdfcac91cc5834657.zip
add noise strength parameter similar to NAI
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 3d2c4dc9..b9cb6d32 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -861,6 +861,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
def sample(self, conditioning, unconditional_conditioning, seeds, subseeds, subseed_strength, prompts):
x = create_random_tensors([opt_C, self.height // opt_f, self.width // opt_f], seeds=seeds, subseeds=subseeds, subseed_strength=self.subseed_strength, seed_resize_from_h=self.seed_resize_from_h, seed_resize_from_w=self.seed_resize_from_w, p=self)
+ x = x*shared.opts.initial_noise_multiplier
samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning, image_conditioning=self.image_conditioning)