Skip to content

Issues with loading a 4D nifti starting in torchio v0.18.49 #684

Closed
@efirdc

Description

🐛Bug
Hi,

I am running into an issue loading a 4D fMRI nifti. Here's a sample file:

https://openneuro.org/crn/datasets/ds001506/snapshots/1.3.1/files/sub-01:ses-perceptionNaturalImageTraining01:func:sub-01_ses-perceptionNaturalImageTraining01_task-perception_run-01_bold.nii.gz

These ones require channels_last=True

In torchio 0.18.48 it correctly loads with a shape of (239, 96, 96, 76), but starting in 0.18.49 I get (1, 96, 96, 76, 239)

All I am doing is loading the image and checking the shape. Please let me know if there are issues reproducing.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions