Skip to content

2d slices from 3d image shuffle/randomize #1054

Answered by wyli
Djennifer asked this question in Q&A
Discussion options

You must be logged in to vote

in the tutorial https://github.com/Project-MONAI/tutorials/blob/main/modules/2d_slices_from_3d_training.ipynb,

that's done with a ShuffleBuffer: shuffle_ds = monai.data.ShuffleBuffer(patch_ds, buffer_size=30, seed=0) when the buffer_size is larger than number of slice samples per volume, it'll shuffle across subjects.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Djennifer
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