Skip to content

No clamp for input after Gaussian data augumentation? #9

@xinghua-qu

Description

@xinghua-qu
# augment inputs with noise
inputs = inputs + torch.randn_like(inputs, device='cuda') * noise_sd

Line 109 in train.py.

If there is no torch.clamp() after line 109, it is possible that the input image will exceed its allowed pixel value range (i.e., [0,1])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions