Skip to content
Discussion options

You must be logged in to vote

I do not apply FlattenSubKeysd but only use it during postprocessing. I believe, the reason why the I have two labels in the engine.state.batch is that the decollate function does not support nested keys, thus it takes both arguments for labels and puts them into the engine's state. However, they are then in engine.state.batch and because of this line in engine_apply_transform:

if k in output or k not in batch:

they will not be transferred to the output and thus are not usable for metric calculation. However, the approach you linked with using a Lambda to apply transforms to the nested items would probably work together wi…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6133 on March 13, 2023 15:27.