Skip to content

LMMSEInterpolator initialization is very slow with GPU enabled #506

Open
@vtyibin

Description

@vtyibin

The __init__ function of LMMSEInterpolator runs very slow when GPU is enabled. Specifically, the _build_pilot_mask() function takes a very long time to finish.

The issue is that in _build_pilot_mask(), the variables mask and pilots are not converted to NumPy arrays, which force the following loops to run on the GPU. In my case, the _build_pilot_mask() function takes about 1 minutes instead of 0.2 second.

So the two assign statements from

mask = pilot_pattern.mask
should be modified as:

 mask = np.array(pilot_pattern.mask)
 pilots = np.array(pilot_pattern.pilots)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions