Pass input noise seed through noise math
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5680bae108
commit
acba2c9bdd
@@ -73,8 +73,8 @@ class NoiseExecutor:
|
||||
else:
|
||||
self.tree = expr
|
||||
self.stack = stack
|
||||
|
||||
seed = -1
|
||||
# Samplers seed their own noise (ancestral/SDE) from noise.seed, so pass the first input's seed through
|
||||
self.seed = next((v.seed for v in V.values() if v is not None), 0)
|
||||
|
||||
def generate_noise(self, input_latent: torch.Tensor) -> torch.Tensor:
|
||||
samples = input_latent["samples"]
|
||||
|
||||
@@ -100,8 +100,7 @@ class NoiseExecutor:
|
||||
self.z = z
|
||||
self.expr = Noise
|
||||
self.tree = parse_expr(Noise)
|
||||
|
||||
seed = -1
|
||||
self.seed = next((n.seed for n in (a, b, c, d) if n is not None), 0)
|
||||
|
||||
def generate_noise(self, input_latent: torch.Tensor) -> torch.Tensor:
|
||||
samples = input_latent["samples"]
|
||||
|
||||
@@ -360,6 +360,7 @@ def test_noise_math_5d():
|
||||
class MockNoise:
|
||||
def __init__(self, tensor):
|
||||
self.tensor = tensor
|
||||
self.seed = 0
|
||||
|
||||
def generate_noise(self, input_latent):
|
||||
return self.tensor
|
||||
@@ -382,6 +383,7 @@ def test_noise_math_autogrow():
|
||||
class MockNoise:
|
||||
def __init__(self, tensor):
|
||||
self.tensor = tensor
|
||||
self.seed = 0
|
||||
|
||||
def generate_noise(self, input_latent):
|
||||
return self.tensor
|
||||
|
||||
Reference in New Issue
Block a user