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

About the estimating of blur kernel #15

Open
Sheldon04 opened this issue Nov 23, 2020 · 6 comments
Open

About the estimating of blur kernel #15

Sheldon04 opened this issue Nov 23, 2020 · 6 comments

Comments

@Sheldon04
Copy link

I wanna know the reason why you use fcn to estimate the blur kernel instead of directly estimate the kernel by CNN from a blur image? Thank you professor.

@csdwren
Copy link
Owner

csdwren commented Nov 24, 2020

CNN is designed for generating natural images. But the distribution of blur kernels are quite different from natural images. Thus CNN is not a good choice for estimating blur kernel. You can replace fcn as CNN, and find that CNN can estimate coarse shape of blur kernel but it is quite inferior to fcn.

@Sheldon04
Copy link
Author

CNN is designed for generating natural images. But the distribution of blur kernels are quite different from natural images. Thus CNN is not a good choice for estimating blur kernel. You can replace fcn as CNN, and find that CNN can estimate coarse shape of blur kernel but it is quite inferior to fcn.

yeah, I’ve done some work on that and found that the blur core is always surrounded by few magazines

@Sheldon04
Copy link
Author

how do you know the size of blur kernel?

@csdwren
Copy link
Owner

csdwren commented Dec 3, 2020

how do you know the size of blur kernel?

Generally, it is assumed as a known value. If not, you can set a relatively large value to cover possible blur sizes.

@Sheldon04
Copy link
Author

Thank you!!! And one more thing, when i was running your model, i found that the result of manmade_05_kernel_03 in lai datasets is low in ssim and psnr(using the method you've supplied), but actually its visual result is quiet good. Then I compared the manmade_05_kernel_03 in datasets/lai and found there is a marked dislocation for this blur img. But in your results, it seems has no dislocation, why is it?

@csdwren
Copy link
Owner

csdwren commented Dec 4, 2020

The SelfDeblur actually has some randomness, such as input noise, parameter initialization, noise perturbation in each iteration etc. I only fixed the input noise, but I cannot guarantee the same results with the paper. Even you run xxx_reprocude.py to load my trained parameters, the results may be slightly different from the paper, since the random noise perturbation.

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