The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix TAESD preview to only decode first latent, instead of all
Jedrzej Kosinski41b07ff8d780
diff --git a/latent_preview.py b/latent_preview.pyindex e1553c85c..6e758a1a9 100644--- a/latent_preview.py+++ b/latent_preview.py@@ -22,7 +22,7 @@ class TAESDPreviewerImpl(LatentPreviewer):self.taesd = taesddef decode_latent_to_preview(self, x0):- x_sample = self.taesd.decoder(x0)[0].detach()+ x_sample = self.taesd.decoder(x0[:1])[0].detach()# 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)