Add input latent to noise even thought it will be filled with 0 during T2I but might be usefull during I2I

This commit is contained in:
mcDandy
2025-08-14 17:46:15 +02:00
parent 4fbe912195
commit aba6cd3068
+1 -1
View File
@@ -141,7 +141,7 @@ class NoiseMathNode:
H = getIndexTensorAlongDim(input_latent["samples"], 3)
C = getIndexTensorAlongDim(input_latent["samples"], 1)
variables = {'a': self.va.generate_noise(input_latent), 'b': self.vb, 'c': self.vc, 'd': self.vd, 'w': self.vw, 'x': self.vx, 'y': self.vy, 'z': self.vz,'B':B,'X':W,'Y':H,'C':C,'W':input_latent["samples"].shape[2],'H':input_latent["samples"].shape[3]}
variables = {'a': self.va.generate_noise(input_latent), 'b': self.vb, 'c': self.vc, 'd': self.vd, 'w': self.vw, 'x': self.vx, 'y': self.vy, 'z': self.vz,'B':B,'X':W,'Y':H,'C':C,'W':input_latent["samples"].shape[2],'H':input_latent["samples"].shape[3],'I':input_latent["samples"]}
input_stream = InputStream(self.expr)
lexer = MathExprLexer(input_stream)
stream = CommonTokenStream(lexer)