TypeError: argument of type 'Compose' is not iterable
when trying to do inverse transform
#7376
Replies: 1 comment
-
Hi @FMGS666, I think the reason is that 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.
-
Hello,
I have some volumes on which I trained your implementation of the SwinUnetR model.
In order to feed the volumes in the model, I need to make its spatial dimensions divisible by 2**5.
After I trained my model, I need to do inference on some volumes, which I need to predict on their entirety. To make
their spatial sizes divisible by 32, I used the
monai.transforms.DivisiblePadd
transform. The transforms I am applying to the test data are the following:I then created the dataset and data loader as follows:
Then, as the images are very big, I need to patch them before feeding them into the model, and this I do using the
patchify
library.My inference loop looks like this:
(I iterate over each patch cause loading them all on the gpu is too much for the memory I have available)
Then I try to reconstruct them in the following loop, but this is were I am getting the error:
The traceback is the followng:
I tried to follow your notebook tutorial, and it looked to me that they were doing pretty much the same...
I guess there is something I didn't understand about how to pass the
applied_operations
attribute of the MetaTensor, but I am not able to figure out how....Thank you very much for your help and time
Beta Was this translation helpful? Give feedback.
All reactions