diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-11-07 08:33:16 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-11-07 08:33:33 +0000 |
commit | 5e80d9ee99c5899e5e2b130408ffb65a0585a62a (patch) | |
tree | 8127b07b946b376d4276e2169ceffb7c2e64ba09 /modules/processing.py | |
parent | 47bccbebaeeda87fdf2df752f59bdb9e54a3dddf (diff) | |
download | stable-diffusion-webui-gfx803-5e80d9ee99c5899e5e2b130408ffb65a0585a62a.tar.gz stable-diffusion-webui-gfx803-5e80d9ee99c5899e5e2b130408ffb65a0585a62a.tar.bz2 stable-diffusion-webui-gfx803-5e80d9ee99c5899e5e2b130408ffb65a0585a62a.zip |
fix pix2pix producing bad results
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
|