Coder Social home page Coder Social logo

cszn / ircnn Goto Github PK

View Code? Open in Web Editor NEW
588.0 588.0 174.0 208.43 MB

Learning Deep CNN Denoiser Prior for Image Restoration (CVPR, 2017) (Matlab)

Home Page: http://openaccess.thecvf.com/content_cvpr_2017/papers/Zhang_Learning_Deep_CNN_CVPR_2017_paper.pdf

MATLAB 99.89% M 0.11%
color-demosaicking deep-model image-deblurring image-denoising image-inpainting image-restoration single-image-super-resolution

ircnn's Introduction

ircnn's People

Contributors

cszn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ircnn's Issues

about the training code

Hi, sorry for interrupting. Could you please kindly provide the training code as well? Thank you~

For a real-world blurred image

How could I obtain the noise level(Isigma) of a real-world blurred image where the PSF is also unknown?
Is there any algorithm recommended to do that?

Unable to open .mat files

Hello,
I'm trying to run your code on my R2018b matlab on Windows 10.
When I try to load one of your .mat files (e.g. 'Levin09.mat') I get the following error:

Error using load
Unable to read MAT-file C:\Users...\kernels\Levin09.mat. Not a binary MAT-file. Try load -ASCII to read as text.

Nothing I do seems to help.
Any idea how to solve this issue?

MatConvNet version

Could you provide information as to which MatConvNet version is used by your code? It seems version 1.0 beta 24 crashes.

About the PSNR and SSIM

I run the code for denoise, and the PSNRs and SSIMs are different from those in the paper. For example, the test dataset is DSB68(gray) with the noise level 15.
The mean PSNR I tested was 28.67 and the mean PSNR presented in the paper is 31.63.
Are there any problems with the test code? Or what mistakes I made? If I have made some mistakes, could you help me to solve it? Thanks a lot.

Demo_deblur_real_application

这个demo跑不通,您知道为什么吗?
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{:});

Error in Demo_deblur_real_application (line 76)
y = edgetaper(y, k);

About “Demo_inpaint” application

In that application, you use Shepard initialize to fit the picture. But in Shepard function, you use mask as one of its parameter.

I'm very confused about how can we get a picture's "mask.png".Totally we just get a picture without its mask. If your paper just ignores mask's extract just because it is so easy for the paper?

Maybe my problem was so noob.... Sorry about that because I'm new to the CNN...

If you have free time to answer, thank you for your patience!!!

setting

Sorry, what seetings do I need to configure when I download this files?

Could you help me fix the problem

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{:});

Error in Demo_deblur_real_application (line 76)
y = edgetaper(y,k);

Running without GPU

I wanted to use this for my research. I tried to run this in supercomputing clusters which does not have GPUs. It gave errors.

There is a problem with the CUDA driver or with this GPU device. Be sure that you have a supported GPU and that
the latest driver is installed.

How can I run it without GPU?

Demo_deblur_real_application

错误使用 edgetaper
需要的 第 2 个输入, PSF, 应为 非零。

出错 edgetaper>parse_inputs (line 128)
validateattributes(PSF,{'uint8','uint16','int16','double','single'},...

出错 edgetaper (line 34)
[I, PSF, sizeI, classI, sizePSF, numNSdim] = parse_inputs(varargin{:});

出错 Demo_deblur_real_application (line 76)
y = edgetaper(y, k);

看来您回答别人的要有模糊核,您的样例的模糊核不是文件里就有吗,而且也都出来了,为啥还是有这个问题啊?
希望百忙之中抽空解决一下,谢谢了

About training

What's the training data seem like? Are the input generated by just adding noise to the clean images?
Thanks for your reply :)

训练数据是否仅仅通过在干净的图片上添加高斯噪声生成?要通过模糊核模糊吗?

About CNNDenoiser

Hi,guys
When I read "Demo_SISR_RGB.m" code, I had doubts about this line.It means I don't know what is "CNNDenoiser" variable, how did it come about,could you help check this issues? thanks!

About the kernel size of Gaussian blur by downsampling for SISR

Could you please tell me why the kernel size is even when the scale factor is 2 or 4 in Blurring by Gaussian kernel followed by downsampling for SISR?

kernelsize = ceil(sigma*3)*2+2;
kernel     = fspecial('gaussian',kernelsize,sigma);
blur_HR    = imfilter(im, kernel,'replicate');
LR         = blur_HR(scale/2:scale:end-scale/2,scale/2:scale:end-scale/2,:);

About installation

Hi,
Which OS is required to install and use your works?
Ubuntu or windows? And their version?
Could you please share more information about how to install and use?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.