Replies: 2 comments
-
that's expected because Orientationd requires the meta info from LoadImaged to determine the original orientation. |
Beta Was this translation helpful? Give feedback.
-
Ok, And I can see that from monai 1.3 even the 'ensurechannelsfirst' will stop working in the way that it's either MetaTensor or a tensor + dict. (I just saw 7dfa0b9 where this functionality was removed). So - there is just no sensible scenario to use |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
OrientationD
transform behaves differently when metadata is not tracked in MetaTensor, but in metadata dictTo Reproduce
Prerequisite:
Those two snippets give different results:
In my example file:
meta=False first_patch_input torch.Size([1, 96, 96, 96]) -2800.24267578125 258.0 -3024.0 14933
vs
meta=True first_patch_input torch.Size([1, 96, 96, 96]) -2810.35107421875 317.0 -3024.0 4097
If I remove
Orientationd
from the list of transforms - the output is the same.Expected behavior
OrientationD
should give the same result both for MetaTensor and for dict with metadata.Or, at least - should fail explicitly when it can't do it's job.
E.g.
EnsureChannelFirstd
would fail in the case no tracking metadata and whenimage_only=True
.Environment
Beta Was this translation helpful? Give feedback.
All reactions