diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-12-10 09:36:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 09:36:24 +0300 |
commit | 8ee1acc1e4178c7df1359d1ba9b533eacd7d8c96 (patch) | |
tree | e9b0dc19eea7fb5a8d6b2d0b372d7b8c4f4bf0c4 /modules/processing.py | |
parent | e5e557fa5ddf569342b65967bada8c8dd9c4fb6a (diff) | |
parent | cf3e844d1d31d64f3234a0fbdfcac91cc5834657 (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.py | 1 |
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)
|