Closed lez-s closed 1 year ago
in the ldm/models/diffusion/ddpm.py, p_losses function.
ldm/models/diffusion/ddpm.py
p_losses
if self.parameterization == "x0": target = x_start elif self.parameterization == "eps": target = noise elif self.parameterization == "v": target = self.get_v(x_start, noise, t) else: raise NotImplementedError()
why the target is random noise? is it because model try to predict the denoised noise?
Yes, I think the model output is trying to predict the noise when tilmestep equals t.
in the
ldm/models/diffusion/ddpm.py
,p_losses
function.why the target is random noise? is it because model try to predict the denoised noise?