Skip to content

After modifying the transforms in trainers/deepedit, the model cannot learn. #907

Answered by tangy5
Minxiangliu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Minxiangliu , thanks for reporting this issue. After reproducing the app and your transformations, we found the NormalizeLabelsInDatasetd will not modify the data meta information correctly, but the following transformation after EnsureChannelFirstd will be handled as MetaTensor, where the image meta information are stored. If the NormalizeLabelsInDatasetd is applied in the beginning, the meta information will be lost and resulting incorrect transformations.

For now, the solution is to move the NormalizeLabelsInDatasetd after all MONAI image transformations are done (As bellow).
I've tested it using your app and data, it gives me the results:

Result: {"total_epochs": 50, "total_iterat…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Minxiangliu
Comment options

Answer selected by Minxiangliu
Comment options

You must be logged in to vote
0 replies
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