-
Notifications
You must be signed in to change notification settings - Fork 131
Liu-Jia Padding #934
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
base: main
Are you sure you want to change the base?
Liu-Jia Padding #934
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #934 +/- ##
==========================================
- Coverage 84.81% 84.44% -0.38%
==========================================
Files 208 208
Lines 21352 21588 +236
Branches 2878 2931 +53
==========================================
+ Hits 18110 18229 +119
- Misses 2347 2429 +82
- Partials 895 930 +35 ☔ View full report in Codecov by Sentry. |
|
Hi @jscanvic is this ready for review ? Do you need any help for the last TODOs ? 😄 |
|
Almost I'll wrap it up shortly but thanks for offering your help! |
Towards #898
Liu-Jia padding reduces ringing artefacts introduced by spectral deconvolution methods that generally assume a periodic blur model that is unsuitable for real-world deblurring where opposite edges are decorrelated.
TODO
deepinv.utils.liu_jia_padSimple experiment
I blur a 256x256 RGB image using a Gaussian filter with a standard deviation of 1px and compare the effect of using no padding vs using Liu-Jia padding before using one of two deconvolution method (simple inverse filtering and Wiener deconvolution). We see that Liu-Jia padding prevents the ringing artifacts in Wiener deconvolution.
Inverse filtering

Wiener deconvolution
