Merge pull request #12596 from AUTOMATIC1111/fix-taesd-scale

Remove wrong TAESD Latent scale
This commit is contained in:
AUTOMATIC1111 2023-08-16 09:56:12 +03:00 committed by GitHub
commit 023a3a98a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: