Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the issue of noise generation and sample #25

Open
wjd23333 opened this issue Jun 6, 2023 · 1 comment
Open

the issue of noise generation and sample #25

wjd23333 opened this issue Jun 6, 2023 · 1 comment

Comments

@wjd23333
Copy link

wjd23333 commented Jun 6, 2023

why ues this to generate a noise (saveNoisy = torch.clamp(noisyImage * 0.5 + 0.5, 0, 1))
is this 0.5 necessray?
and also in this function(sampledImgs = sampledImgs * 0.5 + 0.5 # [0 ~ 1])

@Dystopians
Copy link

This is a normalization step that allows a tensor that would otherwise lie between -1 and 1 to be situated between 0 and 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants