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

ADD_NOISE #1

Open
erlebach opened this issue May 27, 2017 · 1 comment
Open

ADD_NOISE #1

erlebach opened this issue May 27, 2017 · 1 comment

Comments

@erlebach
Copy link

Hi,

In run_main, in the section "if ADD_NOISE:", the code states:
if ADD_NOISE:
x_PMLR = x_PMLR * np.random.randint(2, size=x_PMLR.shape)
x_PMLR += np.random.randint(2, size=x_PMLR.shape)

Line 1 creates pepper noise (since you are multiplying by 1 or 0). The second line adds 1 or 0 to each pixel. What is the rationale? Why not simply add a Gaussian or uniform noise of small amplitude to each pixel? Thanks.

@hwalsuklee
Copy link
Owner

Hi,

Two lines you mentioned is meant to add "strong" noise to image so that you can hardly recognize digits in input image with noise.

I just wanted to show strong denoising performance of VAE.

You are allowed to add any types of noise like gaussian or uniform.
There is no rationale.

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