aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-12-10 09:36:24 +0300
committerGitHub <noreply@github.com>2022-12-10 09:36:24 +0300
commit8ee1acc1e4178c7df1359d1ba9b533eacd7d8c96 (patch)
treee9b0dc19eea7fb5a8d6b2d0b372d7b8c4f4bf0c4 /modules/processing.py
parente5e557fa5ddf569342b65967bada8c8dd9c4fb6a (diff)
parentcf3e844d1d31d64f3234a0fbdfcac91cc5834657 (diff)
Merge pull request #5373 from mezotaken/master
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 0417ffc5..dd22a2fa 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -891,6 +891,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)