diff options
author | Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> | 2023-11-16 13:53:13 +0000 |
---|---|---|
committer | Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> | 2023-11-16 13:53:13 +0000 |
commit | cd12256575dcce325519ef674323d953fbce252c (patch) | |
tree | 61cb8998f8971cbdbd3302ff1b7edda6e2737b99 /modules/processing.py | |
parent | c3facab495e6bb29b5e0b16d064b44851a733a95 (diff) | |
parent | 5e80d9ee99c5899e5e2b130408ffb65a0585a62a (diff) | |
download | stable-diffusion-webui-gfx803-cd12256575dcce325519ef674323d953fbce252c.tar.gz stable-diffusion-webui-gfx803-cd12256575dcce325519ef674323d953fbce252c.tar.bz2 stable-diffusion-webui-gfx803-cd12256575dcce325519ef674323d953fbce252c.zip |
Merge branch 'dev' into test-fp8
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 70ad1ebe..b0e240a4 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -296,7 +296,7 @@ class StableDiffusionProcessing: return conditioning
def edit_image_conditioning(self, source_image):
- conditioning_image = images_tensor_to_samples(source_image*0.5+0.5, approximation_indexes.get(opts.sd_vae_encode_method))
+ conditioning_image = shared.sd_model.encode_first_stage(source_image).mode()
return conditioning_image
|