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

Commit

Permalink
Merge pull request #32 from JCBrouwer/patch-1
Browse files Browse the repository at this point in the history
Fix offset noise
  • Loading branch information
ExponentialML authored Apr 3, 2023
2 parents 9cfcae5 + 9c47acb commit 25697f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 25697f9

Please sign in to comment.