Replies: 1 comment
-
thanks! which version of MONAI are you using? the latest shouldn't have this issue >>> from monai.data import MetaTensor
>>> MetaTensor(1.0)
metatensor(1.)
>>> print(MetaTensor(1.0))
metatensor(1.)
>>> MetaTensor(1.0).print_verbose()
metatensor(1.)
{affine: tensor([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]], dtype=torch.float64), space: RAS} or you can convert it into a regular tensor:
|
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 Monai community,
First of all, thank you very much for the development of this great tool!
I have a very basic question for which I could not find an answer in the doc: how do print a (meta) tensor without tensor metadata and applied operation? I've tried many things (like
MetaTensor.as_tensor()
) but the metadata is always appended to the output.Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions