Skip to content
Discussion options

You must be logged in to vote

Hi @KumoLiu,

Thanks for your comment! It works now with:

train_transforms = Compose([LoadImaged(keys="volume", reader="NumpyReader", image_only=False),  # load volume from disk; image_only=False means that we also load the header dict
                            Lambda(lambda x: reduce_input_channels(x, in_channels_idxs)),  # reduce input channels (we only use the patches selected by the user)
                            SplitDimd(keys="volume", dim=0),  # split channels (i.e. patches) so that the same augmentation is applied to each channel with the same probability
                            RandFlipd(keys="volume", prob=0.2),
                            Rand3DElasticd(keys="volume", prob

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tommydino93
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