Commit 70d72c43 authored by space-nuko's avatar space-nuko
Browse files

Slightly less vibrant sample

parent 48f7ec75
......@@ -264,8 +264,8 @@ class TAESDPreviewerImpl(LatentPreviewer):
def decode_latent_to_preview(self, device, x0):
x_sample = self.taesd.decoder(x0.to(device))[0].detach()
x_sample = self.taesd.unscale_latents(x_sample) # returns value in [-2, 2]
x_sample = x_sample * 0.5
# x_sample = self.taesd.unscale_latents(x_sample).div(4).add(0.5) # returns value in [-2, 2]
x_sample = x_sample.sub(0.5).mul(2)
return x_sample
class SaveLatent:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment