In ddpm_torch/diffusion.py, within the function GaussianDiffusion.calc_all_bpd, the timestep t is defined before the loop and never changes afterwards.
This seems incorrect. Shouldn’t t be updated in each iteration to reflect the current timestep? Here’s the proposed fix:
This proposed change ensures that t correctly reflects the current timestep during each iteration, which is critical for accurate loss and bpd calculations in DDPMs.
In ddpm_torch/diffusion.py, within the function GaussianDiffusion.calc_all_bpd, the timestep t is defined before the loop and never changes afterwards.
This seems incorrect. Shouldn’t t be updated in each iteration to reflect the current timestep? Here’s the proposed fix:
This proposed change ensures that t correctly reflects the current timestep during each iteration, which is critical for accurate loss and bpd calculations in DDPMs.