DDPM's training objective is simple: predict the noise that was added to a sample. The network sees the noisy sample and the noise level, and is trained with mean squared error on the noise.
Implement noise_prediction_loss(eps, eps_pred), the mean squared error on the noise.
Square the difference between the true and predicted noise, then average.
No results yet
Run your code to check it against the examples, or submit to run every test.