Using RandWeightedCropd with correct batch size #7301
Unanswered
sunburnt-fish
asked this question in
Q&A
Replies: 1 comment
-
Hi @sunburnt-fish, you can refer to this discussion. Hope it helps, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use
RandWeightedCropd
to generate samples from a volume of data. For each volume I want to generate 50 samples but I cannot fit all of this onto my GPU so I need a smaller batch size. However, when I apply this transform and set the batch size in my data loader, it always returns a batch size ofnum_samples
that I set for the random sampling and not the smallerbatch_size
I set for my data loader. How can I do this correctly? A minimal example is below to show my problem:I would expect this to give me a print out of
but instead I get
Beta Was this translation helpful? Give feedback.
All reactions