Heyi007 / FIMA

On the Convergence of Learning-based Iterative Methods for Nonconvex Inverse Problems (TPAMI 2019)
18 stars 11 forks source link

'nonblind_deblur_FIMA.p' cannot handle gray image properly #1

Closed Vandermode closed 4 years ago

Vandermode commented 5 years ago

Hi, It seems there is a bug in nonblind_deblur_FIMA.p when processing gray image.

Though NonBlind_Deblur.m works properly when dealing with color image, this function fails in gray image case, resulting in following error messarge.

Error using load
Unable to read file 'models\modelgray.mat'. No such file or directory.

I was wondering whether you can fix this problem, as it's a protected file that I cannot modify.

Heyi007 commented 5 years ago

The path of grayscale model has been changed to stay the same with color model and a grayscale test image was added, in my environment, grayscale image can be processed normally. You can try it again, if the problem still exist, a simple way is to copy a single channel to 3 channel image and take one channel of the output as final result.