Skip to content

Why you use diffsusion's q_sample instead of adding noise directly to the input? (DRM.py) #3

Open
@ChoiDae1

Description

@ChoiDae1

Hello!
I have one question about your implemtation code.

In DRM.py, I understand DiffusionRobustModel's denoise function plays the role of both noising input image (by using predicted timestep) and denoising.

But, in general certify scheme, input image is first augmented by directly adding noise and then passed classifier.
So, I think below procedure is more correct.

Given sigma,
add noise to input image by directly using this sigma   -> denoisng this input by using predicted timestep

In your implementation, noise-level is influenced by predicted time step. This means you use estimated sigma(not given sigma) for noising input.

If not, please explain about this.
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions