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

Artifacts when denoising AWGN #8

Closed
m-tassano opened this issue Nov 12, 2019 · 7 comments
Closed

Artifacts when denoising AWGN #8

m-tassano opened this issue Nov 12, 2019 · 7 comments

Comments

@m-tassano
Copy link

Hi! I'm getting loads of artifacts when denoising sequences with AWGN (see a couple of examples of sequences from the DAVIS dataset below) Is this normal? Thanks

image

image

@clausmichele
Copy link
Owner

I am currently working on a new version of the code with the training part, since I guess there are some problems with tensorflow and the stored weights. As soon as I finish I will release it here.

@clausmichele
Copy link
Owner

Hi! I'm getting loads of artifacts when denoising sequences with AWGN (see a couple of examples of sequences from the DAVIS dataset below) Is this normal? Thanks

image

image

Could you please share with me the data you tried to denoise? How did you add AWGN?
I will use it for testing..

@m-tassano
Copy link
Author

m-tassano commented Nov 14, 2019 via email

@clausmichele
Copy link
Owner

clausmichele commented Nov 14, 2019

I guess the main difference is the clipping step which is missing. For training I used:

def gaussian_noise(sigma,image):
	gaussian = np.random.normal(0,sigma,image.shape)
	noisy_image = np.zeros(image.shape, np.float32)
	noisy_image = image + gaussian
	noisy_image = np.clip(noisy_image,0,255)
	noisy_image = noisy_image.astype(np.uint8)
	return noisy_image

@m-tassano
Copy link
Author

m-tassano commented Nov 14, 2019 via email

@clausmichele
Copy link
Owner

True, but since it is not possible to have a real image where the values are higher than 255 (or 1) or lower than 0, it makes sense to me to clip the image.
If I store a noisy image/video in a file instead of a local variable, they will be clipped.
You could claim that AWGN is not a realistic noise type, so why bother if it can be stored in a real image.
However, this project was born to treat different kind of noise and was not specificly designed for AWGN.
Let me know if clipping the images solves the problem, if not I'll investigate further.

@m-tassano
Copy link
Author

m-tassano commented Nov 14, 2019 via email

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