Skip to content

Clipping #2

Description

@ariel415el

Hi Your implementation as all others I saw clips the model output:

_maybe_clip = lambda x_: (x_.clamp(min=-1, max=1) if clip_denoised else x_)

This is does not show in the paper but seem crucial for image quality..
Can you explain why it's there?

I posted the same question at the official repo:
hojonathanho/diffusion#5 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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