Label numpy to tensor conversion issue #727
Unanswered
relyativist
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Load dataset:
Transformations:
|
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.
-
Hi,
After composing transform for np.array float32 labels, which have data type and unique:
I get the output tensor with
After checking output tensor, I get the value with not only 0 and 1:
torch.unique(val_data_example["seg"])
I suppose, behaviour of translating from numpy to tensor is wrong. Are there any monai transformations that could resolve this?
Beta Was this translation helpful? Give feedback.
All reactions