Skip to content
Discussion options

You must be logged in to vote

Dear @KumoLiu, I successfully reinstalled Monai as you suggested. Afterwards, I just substituted the transform "AddChannel" (which is deprecated in this 1.0.0 version) by the suggested transform: EnsureChannelFirst(channel_dim="no_channel"). It is happening exactly the same as with the previous version, despite of the new Monai version. That is, the LoadImage() transform returns a tuple when reading a PNG image. The first component is now a MetaTensor (which contains the pixel matrix), whereas the second component is a dictionary. The EnsureChannelFirst transform is applied to both components, but fails on the dictionary. In the image below, you can see that when calling the EnsureChannel…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@hblanco2009
Comment options

@KumoLiu
Comment options

Comment options

You must be logged in to vote
11 replies
@vikashg
Comment options

vikashg Oct 19, 2022
Collaborator

@vikashg
Comment options

vikashg Oct 19, 2022
Collaborator

@KumoLiu
Comment options

@vikashg
Comment options

vikashg Oct 19, 2022
Collaborator

@KumoLiu
Comment options

Answer selected by hblanco2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants