Comments (9)
Make sure you also provide the blur kernel because IRCNN takes the blurred image and blur kernel as input.
For your own blurred image, please estimate the blur kernel by a blind deblurring method first, then you can use this code for non-blind deblurring.
from ircnn.
我是直接跑的demo,然后出现了上述错误,那这个blur kernel是一张图片吗?比如说:kerneltestsets/Deblur_set2/im01_ker01_out_kernel.png
from ircnn.
Yes, the blur kernel is saved as an image.
from ircnn.
i am also encounter this question,how to solve it?thanks!
from ircnn.
Can you tell me how to estimate the blur kernel by a blind deblurring method?
from ircnn.
Some blind deblurring codes: https://github.com/rgbitx/image_deblur_code
from ircnn.
Thanks!
from ircnn.
The problem has been solved.
See the details:
IRCNN/Demo_deblur_real_application.m
Line 74 in f47a52a
from ircnn.
I ever got similar errors in other codes.
Error using edgetaper
Expected input number 2, PSF, to be nonzero.
Error in edgetaper>parse_inputs (line 128)
validateattributes(PSF,{'uint8','uint16','int16','double','single'},...
Error in edgetaper (line 34)
[I, PSF, sizeI, classI, sizePSF, numNSdim] =
parse_inputs(varargin{:});
Actually, the error means that PSF is required not to contain zero elements by the function validateattributes(PSF,{'uint8','uint16','int16','double','single'},...
So, we need to check PSF to make sure it does not contain zeros. Alternatively, we can add PSF with very small numbers to eliminate zeros. It works in this way.
from ircnn.
Related Issues (20)
- About “Demo_inpaint” application HOT 1
- To get a blind kernel from a picture HOT 1
- Are there some problems about the trained model?
- about your training codes? HOT 1
- For a real-world blurred image HOT 1
- How to upscale a noisy image in your code HOT 2
- Noisy LR images are generated by Bicubic downsampler instead of Direct downsampler. HOT 1
- About the PSNR and SSIM
- About CNNDenoiser
- problems about the size of the training patch and receptive field
- about the the parameter 'isigma'in the 'demo_deblur_real_application'
- pytorch or tensor flow version HOT 1
- Generalization to other priors
- About training HOT 1
- About the kernel size of Gaussian blur by downsampling for SISR HOT 1
- Unable to open .mat files HOT 1
- For non-matlab models? HOT 1
- About the groundtruth images of Deblur_set1
- what is Levin09.mat
- can find drunet_gray.pth in google driver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ircnn.