Skip to content

Commit aba6cd3

Browse files
committed
Add input latent to noise even thought it will be filled with 0 during T2I but might be usefull during I2I
1 parent 4fbe912 commit aba6cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/more_math/NoiseMathNode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def generate_noise(self, input_latent:torch.Tensor) -> torch.Tensor:
141141
H = getIndexTensorAlongDim(input_latent["samples"], 3)
142142
C = getIndexTensorAlongDim(input_latent["samples"], 1)
143143

144-
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]}
144+
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"]}
145145
input_stream = InputStream(self.expr)
146146
lexer = MathExprLexer(input_stream)
147147
stream = CommonTokenStream(lexer)

0 commit comments

Comments
 (0)