Giter Club home page Giter Club logo

Comments (5)

mckib2 avatar mckib2 commented on June 12, 2024 1

Hi @dgallichan , thanks for reaching out and apologies for the late response.

There are two ways I can think of to get the effect you're looking for:

  1. use res, weights = mdgrappa(..., ret_weights=True) to get the weights from a single slice/volume and then reuse them (instead of retraining) by subsequently calling mdgrappa(..., weights=weights)
  2. Use the train_kernels function directly to calculate weights. You'll need to provide some kspace and the windowed calibration weights (as done here). Then you call mdgrappa(..., weights=weights) with those weights

I had never intended train_kernels to be a public function (which is probably why A is passed directly in like it is instead of calib), so I would try 1. first and if that doesn't suit your needs go to 2.

Please let me know how it goes or if the above doesn't do what you had hoped

from pygrappa.

dgallichan avatar dgallichan commented on June 12, 2024

Thanks very much for the response (and my turn for apologies in taking time to actually try it out!). Method 1 does indeed appear to do what I wanted - thank you!

However, I seemed to be finding that 'mdgrappa' does not run as fast as 'grappa', is that correct?

from pygrappa.

mckib2 avatar mckib2 commented on June 12, 2024

No, it does not run as fast, but I find mdgrappa is more stable. I've been waiting for a lazy day to rewrite some of the core logic in C++ to give it a boost, but I haven't had a chance lately

from pygrappa.

dgallichan avatar dgallichan commented on June 12, 2024

No big worries about the speed for now, I just wanted to check I wasn't doing something wrong - it's great that you're sharing the code at all!

If you do ever find the time to work on it, I've heard that big speed and memory improvements can also be made by combining GRAPPA with coil compression, so the weights translate directly to a small number of virtual coils instead of needing to do all of them. I've also never found the time to experiment with it though!

from pygrappa.

mckib2 avatar mckib2 commented on June 12, 2024

I've heard that big speed and memory improvements can also be made by combining GRAPPA with coil compression

This was actually a huge frustration to me and why I wrote this code to begin with -- I needed the coil images (not virtual ones) specifically!

Glad you've found it useful!

from pygrappa.

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.