Replies: 1 comment 1 reply
-
Hi @codingS3b, good question! most of the transforms in MONAI currently assumes the 'channel-first' format. Batch input is not directly supported, but it's possible to have: from monai.data import decollate_batch
outputs = transforms(decollate_batch(torch.ones(2, 1, 34, 32, 32)))
for idx, p in enumerate(outputs):
print(idx, p.shape) where |
Beta Was this translation helpful? Give feedback.
1 reply
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 recently ran into the problem of trying to apply the
monai.transforms.RandScaleCrop
to a batch of images which failed.Below is the code I tried:
Is there a way that I'm missing on how to apply the transformation on a batch of images or is this usage not supported?
Thanks for helping out here!
Beta Was this translation helpful? Give feedback.
All reactions