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