Skip to content

Question about adding noise to input #11

@baneitixiaomai

Description

@baneitixiaomai

Hi!
I am currently studying your NCSN project, and there is a bit confused about the handling of the input:
on Line 136 in the file ncsn/runners/anneal_runner.py --- "X = X / 256. * 255. + torch.rand_like(X) / 256." Why add a small Gaussian noise to X,and the predefined Gaussian noise is added in function "anneal_dsm_score_estimation"
I am curious about why this is necessary and would appreciate any insights you could provide.

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