Skip to content

L2-norm discrepancy between paper and code #20

Description

@tristan-deep

Careful note for people implementing DPS!

The DPS paper specifies a squared L2 norm (line 7 of the algo):

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions