Replies: 1 comment
-
I think it is because the inverse of ToTensor's transform is a Numpy Array, so the previous transform (CropForeground) in the compose pipeline expects a "dict" or "MetaTensor" Could it be solved with only removing ToTensor transform from the pipeline? |
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'm running into an issue when trying to invert a simple MONAI transform pipeline. The inversion works as expected unless I include ToTensord at the end of the pipeline. When ToTensord is present, calling .inverse() on the pipeline raises an error (see below). Is this because ToTensord does not implement an inverse method, or am I missing something about how inversion should work with tensor conversion in MONAI? Any advice on how to properly invert the transforms when using ToTensord would be appreciate
Beta Was this translation helpful? Give feedback.
All reactions