From 364b69e93120b872e78efc2e9626dd23bd232c5c Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sat, 21 Sep 2024 09:12:31 -0400 Subject: [PATCH] Make SD3 empty latent image zeros. This shouldn't change anything. The reason it was not zeros is because it did matter in early versions of the code. --- comfy_extras/nodes_sd3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_sd3.py b/comfy_extras/nodes_sd3.py index 77b8fb8e..60a85bbd 100644 --- a/comfy_extras/nodes_sd3.py +++ b/comfy_extras/nodes_sd3.py @@ -36,7 +36,7 @@ class EmptySD3LatentImage: CATEGORY = "latent/sd3" def generate(self, width, height, batch_size=1): - latent = torch.ones([batch_size, 16, height // 8, width // 8], device=self.device) * 0.0609 + latent = torch.zeros([batch_size, 16, height // 8, width // 8], device=self.device) return ({"samples":latent}, ) class CLIPTextEncodeSD3: