Coder Social home page Coder Social logo

Comments (5)

3dsf avatar 3dsf commented on August 19, 2024

Not on a nvidia gpu; is this the issue?

from pymatting.

99991 avatar 99991 commented on August 19, 2024

The warning is because no NVIDIA GPU is available, but that is only required for GPU-accelerated foreground estimation with CUDA. You can still use the CPU-implementation. And if you are lucky and can install pyopencl, you can also use the GPU-accelerated OpenCL implementation.

EDIT: The command pip3 install -r requirements_gpu.txt will install the GPU-requirements.

However, the assertion is unrelated to that.

We found a system to reproduce the issue. Which hardware are you using? Maybe there is a common denominator here.

The good news is that the error is only 5.6e-4 when it should be less than 1e-5, so it is still very small and nothing to be concerned about. We have ruled out the matrix inversion and the box filter so far as sources of numerical precision issues.

from pymatting.

liyiying233 avatar liyiying233 commented on August 19, 2024

There are some problems at runtime in ubuntu16.04
`================================================================================ test session starts =================================================================================
platform linux -- Python 3.6.4, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
rootdir: /home/liyiying/liyiying/git-project/pymatting
collected 11 items

tests/test_boxfilter.py . [ 9%]
tests/test_cg.py . [ 18%]
tests/test_estimate_alpha.py . [ 27%]
tests/test_foreground.py . [ 36%]
tests/test_ichol.py . [ 45%]
tests/test_kdtree.py . [ 54%]
tests/test_laplacians.py . [ 63%]
tests/test_lkm.py F [ 72%]
tests/test_preconditioners.py . [ 81%]
tests/test_simple_api.py . [ 90%]
tests/test_util.py . [100%]

`

`> assert difference < 1e-5
E assert 5.6514436094818936e-05 < 1e-05

tests/test_lkm.py:56: AssertionError
`

from pymatting.

99991 avatar 99991 commented on August 19, 2024

We have recently increased the threshold by a small amount. Do the tests pass now?

from pymatting.

99991 avatar 99991 commented on August 19, 2024

Since there have not been any comments, I'll assume that this issue has been solved.

from pymatting.

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.