From 39da6c3fda44db9284de245f1b38419cc52584d6 Mon Sep 17 00:00:00 2001 From: Saquib Alam Date: Fri, 4 Aug 2023 03:25:22 +0530 Subject: [PATCH] vae scale fix --- comfy_extras/nodes_latent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_latent.py b/comfy_extras/nodes_latent.py index abf82db1f..9261b7bfc 100644 --- a/comfy_extras/nodes_latent.py +++ b/comfy_extras/nodes_latent.py @@ -22,7 +22,7 @@ class NoisyLatentImage: def generate(self, seed, width, height, batch_size=1): generator = torch.manual_seed(seed) - latent = torch.randn([batch_size, 4, height // 8, width // 8], generator=generator, device=self.device) / vae_scaling_factor + latent = torch.randn([batch_size, 4, height // 8, width // 8], generator=generator, device=self.device) * vae_scaling_factor return ({"samples":latent}, )