Replies: 1 comment 4 replies
-
the error message suggests |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to load a PNG image. I want to ensure that at load time, the image should be single channel. I am using something like:
Unfortunately, I am getting the problem:
I am using the option image_only=True above, so as to avoid the problem with metadata.
However, if I do not explicitly specify the reader, then the transform works without a hitch. In other words,
LoadImaged(keys="image", image_only=True, reader=PILReader(converter=lambda image: image.convert("L"))),
does not work whileLoadImaged(keys="image", image_only=True),
works in the above transform.Monai version is 0.9.1.
Any help/suggestion appreciated.
Beta Was this translation helpful? Give feedback.
All reactions