Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 9c47acb

Browse files
authored
Fix offset noise
The offset noise variable was unused even when the configuration had it enabled.
1 parent 9cfcae5 commit 9c47acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def sample_noise(latents, noise_strength, use_offset_noise):
203203

204204
if use_offset_noise:
205205
offset_noise = torch.randn(b, c, f, 1, 1, device=latents.device)
206-
noise = noise_latents + noise_strength * offset_noise
206+
noise_latents = noise_latents + noise_strength * offset_noise
207207

208208
return noise_latents
209209

0 commit comments

Comments
 (0)