Skip to content

FastMRI reader outputs Tensor which is not supported by LoadImage Transform #5552

@Can-Zhao

Description

@Can-Zhao

Describe the bug
FastMRI reader outputs Tensor during inference, which is not supported by LoadImage Transform

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Install '....'
  3. Run commands '....'

Expected behavior
switch_endianness function reports the bug, due to unsupport of torch.Tensor output by FastMRI reader.

We should either let FastMRI reader to output numpy array, or let switch_endianness support Tensor.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

Ensuring you use the relevant python executable, please paste the output of:

python -c 'import monai; monai.config.print_debug_info()'

Additional context
Add any other context about the problem here.

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