Careful note for people implementing DPS!
The DPS paper specifies a squared L2 norm (line 7 of the algo):
However, in the code a regular L2 norm implemented with torch.linalg.norm is used:
|
norm = torch.linalg.norm(difference) |
We've found DPS to work well with the non-squared version, as implemented in this codebase :) See our implementation amongst other diffusion guidance methods here.
Careful note for people implementing DPS!
The DPS paper specifies a squared L2 norm (line 7 of the algo):
However, in the code a regular L2 norm implemented with
torch.linalg.normis used:diffusion-posterior-sampling/guided_diffusion/condition_methods.py
Line 31 in effbde7
We've found DPS to work well with the non-squared version, as implemented in this codebase :) See our implementation amongst other diffusion guidance methods here.