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

Commit 25697f9

Browse files
Merge pull request #32 from JCBrouwer/patch-1
Fix offset noise
2 parents 9cfcae5 + 9c47acb commit 25697f9

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)