diff options
author | Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> | 2023-08-16 03:21:12 +0000 |
---|---|---|
committer | Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> | 2023-08-16 03:21:12 +0000 |
commit | d9ddc5d4cd9e707c018d245572310ca6f6cdf1ef (patch) | |
tree | 0c92f53a7b411a33531ecb82add5b8282d3ff8bb /modules/sd_samplers_common.py | |
parent | 85fcb7b8dfe7b3dd06931943f095c77f1043dc25 (diff) | |
download | stable-diffusion-webui-gfx803-d9ddc5d4cd9e707c018d245572310ca6f6cdf1ef.tar.gz stable-diffusion-webui-gfx803-d9ddc5d4cd9e707c018d245572310ca6f6cdf1ef.tar.bz2 stable-diffusion-webui-gfx803-d9ddc5d4cd9e707c018d245572310ca6f6cdf1ef.zip |
Remove wrong scale
Diffstat (limited to 'modules/sd_samplers_common.py')
-rw-r--r-- | modules/sd_samplers_common.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/sd_samplers_common.py b/modules/sd_samplers_common.py index 8886de7e..7dc79ea8 100644 --- a/modules/sd_samplers_common.py +++ b/modules/sd_samplers_common.py @@ -44,8 +44,7 @@ def samples_to_images_tensor(sample, approximation=None, model=None): elif approximation == 1:
x_sample = sd_vae_approx.model()(sample.to(devices.device, devices.dtype)).detach()
elif approximation == 3:
- x_sample = sample * 1.5
- x_sample = sd_vae_taesd.decoder_model()(x_sample.to(devices.device, devices.dtype)).detach()
+ x_sample = sd_vae_taesd.decoder_model()(sample.to(devices.device, devices.dtype)).detach()
x_sample = x_sample * 2 - 1
else:
if model is None:
|