Code Monkey home page Code Monkey logo

Comments (8)

wuhuikai avatar wuhuikai commented on July 17, 2024

Have you tried to reproduce the two images yourself? I think the image in Github might not be consistent with the code.

from deepguidedfilter.

durgob avatar durgob commented on July 17, 2024

Yep, I did. I have run the 'test_fast_guided_filter.py', but I can't get consistent result still. Here is the result of tensorflow
r_fast_tf
and this is result of pytorch
r_fast

from deepguidedfilter.

wuhuikai avatar wuhuikai commented on July 17, 2024

I found the issue. The guided image in pytorch is the input image while it's the output image in TF.

from deepguidedfilter.

durgob avatar durgob commented on July 17, 2024

OK, they look the same now, thank you!

from deepguidedfilter.

dvolgyes avatar dvolgyes commented on July 17, 2024

I also ran into this issue, but i fail to see why the fast guided filter outputs look similar,
while the guided filter outputs look different. Could you elaborate your last comment?
Or if there is a code change, could you commit it? Thanks.

from deepguidedfilter.

wuhuikai avatar wuhuikai commented on July 17, 2024

The bug is in the test scripts:
In TF, the inputs are [lr_rgb, lr_gt, gt]];
In PT, the inputs are [lr_rgb, lr_gt, rgb]].
So, the test results are different.

from deepguidedfilter.

dvolgyes avatar dvolgyes commented on July 17, 2024

I see, thanks for the explanation. Do you mind merging the fix?
I guess many people run into this issue.

Also, for the pytorch guided filter i get strange output.
Maybe it is different pytorch version, etc., but i tried to fix the warnings (upsample vs interpolate, etc.),
but i could not find the reason. So the r.jpg looks like this:
r
Any advice for this issue?

from deepguidedfilter.

wuhuikai avatar wuhuikai commented on July 17, 2024
  1. PR is welcome.
  2. It's the correct output image. To obtain a high-quality image, please tune the hyper-params in GuidedFilter, i.e. radius and eps.

from deepguidedfilter.

Related Issues (20)

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.