diff options
-rw-r--r-- | training/functional.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/training/functional.py b/training/functional.py index 8ea40bb..ac89048 100644 --- a/training/functional.py +++ b/training/functional.py | |||
@@ -277,7 +277,7 @@ def loss_step( | |||
277 | ) | 277 | ) |
278 | 278 | ||
279 | if low_freq_noise != 0: | 279 | if low_freq_noise != 0: |
280 | noise *= 1 - low_freq_noise + low_freq_noise * torch.randn( | 280 | noise = noise * (1 - low_freq_noise) + low_freq_noise * torch.randn( |
281 | latents.shape[0], latents.shape[1], 1, 1, | 281 | latents.shape[0], latents.shape[1], 1, 1, |
282 | dtype=latents.dtype, | 282 | dtype=latents.dtype, |
283 | layout=latents.layout, | 283 | layout=latents.layout, |