Coder Social home page Coder Social logo

Comments (9)

lukepfister avatar lukepfister commented on July 22, 2024

IIRC it’s a problem with the astra algorithm itself.

I want to say that the forward projector is always pixel based, but the GPU adjoint is ray based? Don’t quote me on that.

from scico.

smajee avatar smajee commented on July 22, 2024

So if it is due to the inaccuracy of the astra projector, should we increase the tolerance of the test or just disable them for gpu?

from scico.

Michael-T-McCann avatar Michael-T-McCann commented on July 22, 2024

To clarify: we know there is at least a problem with the ASTRA GPU backprojection algorithm itself. The question here why is the new adjoint test failing with a relative error approaching one. I didn't think the ASTRA backprojection was that inaccurate, but I don't have a good intuition for our new adjoint test.

If you are convinced there is no bug in the interface or test, I learn toward increasing the tolerance rather than disabling the test, because it might allow us to catch regressions in the interface in the future.

from scico.

lukepfister avatar lukepfister commented on July 22, 2024

rel err of 1 is larger than i'd expect; iirc it was something like 10%?

has the astra version changed? it looks like they finally shipped v2 (was on 1.9.9 beta for a looong time)

has the jax/jaxlib version changed? might be worth seeing if something has been modified in the host_callback interface; it is marked as "experimental" and subject to breaking changes

from scico.

smajee avatar smajee commented on July 22, 2024

Is the adjoint test new? Did it ever pass on GPU for astra?

from scico.

lukepfister avatar lukepfister commented on July 22, 2024

No, it isn't new. It passed with very, very loose tolerances; like a relative error of 20% or something.

Sounds like that's no longer the case (and I have no gpu machine to test)

from scico.

smajee avatar smajee commented on July 22, 2024

I did pytests on old commits to see where it broke on GPU.
It seems the tests pass on commit d86b51f and fail after commit 656f59d (Improve LinearOperator adjoint tests (#72)).

That commit (656f59d) seems to be the one where a new adjoint test (adjoint_test) was introduced. The old adjoint_AAt_test seems to pass on GPU.

The new test seems to be testing the adjoint accuracy in a different way than the old test.
I don't understand the tests well enough to comment on why one passes and the other fails. Any ideas?

from scico.

Michael-T-McCann avatar Michael-T-McCann commented on July 22, 2024

from scico.

smajee avatar smajee commented on July 22, 2024

That sounds like a reasonable solution to me.

It seems currently all the astra tests use the same tolerance irrespective of the test. I found that I can make the test pass by making the tolerance of adjoint_test 15 times. I have pushed the change in a (draft) pull request. Let me know your comments on the pull request.

from scico.

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.