From 9c47acbd8b53d59ef956bb71e2847ecf4099f325 Mon Sep 17 00:00:00 2001 From: Hans Brouwer Date: Mon, 3 Apr 2023 12:36:40 +0000 Subject: [PATCH] Fix offset noise The offset noise variable was unused even when the configuration had it enabled. --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 4b3796e..955389e 100644 --- a/train.py +++ b/train.py @@ -203,7 +203,7 @@ def sample_noise(latents, noise_strength, use_offset_noise): if use_offset_noise: offset_noise = torch.randn(b, c, f, 1, 1, device=latents.device) - noise = noise_latents + noise_strength * offset_noise + noise_latents = noise_latents + noise_strength * offset_noise return noise_latents