Giter VIP home page Giter VIP logo

Comments (8)

csdwren avatar csdwren commented on September 12, 2024

Thanks. The deblurred Y channel is used to replace Y component of blurry image (YCbCr space), which is then converted back to RGB space. You can try it.

I will update it along with a new way to directly deblur RGB images.

from selfdeblur.

JingyunLiang avatar JingyunLiang commented on September 12, 2024

I didn't find where do you transform the image from RGB space to YCbCr space. In the calculation of loss, out_y ([1,1,128,128]) and y([1,3,128,128]) are directly input into the MSE loss .

total_loss = mse(out_y, y) + tv_loss(out_x)

From the source code of mse, out_y will be broadcasted to be [1,3,128,128].

expanded_input, expanded_target = torch.broadcast_tensors(input, target)
ret = torch._C._nn.mse_loss(expanded_input, expanded_target, _Reduction.get_enum(reduction))

Therefore, my question is, since the network is not trained with the supervision of Y component of blurry image, how can we expect out_y to be the Y component of deblurred image? @ @ @csdwren

from selfdeblur.

Uhall avatar Uhall commented on September 12, 2024

I have the same question.

from selfdeblur.

csdwren avatar csdwren commented on September 12, 2024

https://github.com/csdwren/SelfDeblur/blob/master/selfdeblur_ycbcr.py has been updated to handle color images. Also the code has been improved with better robustness. Thanks.

from selfdeblur.

TenMiss avatar TenMiss commented on September 12, 2024

In your paper, you used the non-blind deconvolution method [14], i.e. "D. Krishnan and R. Fergus. Fast image deconvolution using hyper-laplacian priors. InNIPS, 2009.". I found that the input image of this non-blind deconvolution method I found on the web must be a grayscale image, and the output image must be a grayscale image, but my final deblurring result is to get the restored color image. This problem has been bothering me for a long time. I am wondering if you could kindly send me the source program and necessary information of this part. I promise they will be used only for research purposed.
Thank you very much for your kind consideration and I am looking forward to your early reply.

from selfdeblur.

TenMiss avatar TenMiss commented on September 12, 2024

Thank you for your work. I mainly want to know how to turn the deconvolution result using "D. Krishnan and R. Fergus. Fast image deconvolution using hyper-laplacian priors. InNIPS, 2009." into a color clear image. Thank you very much !!!

from selfdeblur.

csdwren avatar csdwren commented on September 12, 2024

You can refer to the code 'selfdeblur_ycbcr.py'
An RGB image is converted to YCbCr, and the deconvolution result only process Y channel. Finally re-converted YCbCr to RGB.

from selfdeblur.

TenMiss avatar TenMiss commented on September 12, 2024

from selfdeblur.

Related Issues (18)

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.