Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable gpu load nifti #8188

Open
wants to merge 21 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update filename
Signed-off-by: Yiheng Wang <[email protected]>
  • Loading branch information
yiheng-wang-nv committed Nov 2, 2024
commit b4a747ce096f2a691a69fedcd94a782588730de5
3 changes: 2 additions & 1 deletion monai/transforms/io/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def __call__(self, filename: Sequence[PathLike] | PathLike, reader: ImageReader
img, err = None, []
if reader is not None:
if isinstance(reader, NibabelGPUReader):
buffer = reader.read(filename)
# TODO: handle multiple filenames later
buffer = reader.read(filename[0])
img = reader.get_data(buffer)
# TODO: check ensure channel first
if self.ensure_channel_first:
Expand Down
Loading