Skip to content

Commit

Permalink
Make SD3 empty latent image zeros.
Browse files Browse the repository at this point in the history
This shouldn't change anything. The reason it was not zeros is because it
did matter in early versions of the code.
  • Loading branch information
comfyanonymous committed Sep 21, 2024
1 parent dc96a1a commit 364b69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy_extras/nodes_sd3.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def INPUT_TYPES(s):
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:
Expand Down

0 comments on commit 364b69e

Please sign in to comment.