Skip to content
Discussion options

You must be logged in to vote

Hi @lg2578, could you please add [] in the Compose?

trans=Compose([
    LoadImaged(keys=['image','label']),
    EnsureChannelFirstd(keys=['image','label']),
    Resized(keys=['image','label'],spatial_size=(128,128,-1)),
    SaveImaged(keys=['image','label'],
               output_dir='/kaggle/working',
               data_root_dir=root,
               separate_folder=False,
               output_postfix='',
               output_ext='.nii',
               resample=False,
               ),
])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lg2578
Comment options

Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants