Fix random_noise_multiplier (#738)
Apply random_noise_multiplier to noise.
This commit is contained in:
parent
99a4a5887b
commit
7a0bbca5b1
|
|
@ -1358,7 +1358,7 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
|||
if self.train_config.random_noise_multiplier > 0.0:
|
||||
sigma = self.train_config.random_noise_multiplier
|
||||
noise_multiplier = torch.exp(torch.randn(s, device=noise.device, dtype=noise.dtype) * sigma)
|
||||
|
||||
noise = noise * noise_multiplier
|
||||
with self.timer('make_noisy_latents'):
|
||||
|
||||
latent_multiplier = self.train_config.latent_multiplier
|
||||
|
|
|
|||
Loading…
Reference in New Issue