zeros_like because we are adding

This commit is contained in:
rockerBOO
2025-03-18 18:53:34 -04:00
parent a4f3a9fc1a
commit 6f4d365775

View File

@@ -423,7 +423,7 @@ def get_noisy_model_input_and_timesteps(
else:
ip_noise = args.ip_noise_gamma * torch.randn_like(latents)
else:
ip_noise = torch.ones_like(latents)
ip_noise = torch.zeros_like(latents)
if args.timestep_sampling == "uniform" or args.timestep_sampling == "sigmoid":
# Simple random t-based noise sampling