Skip to content
Discussion options

You must be logged in to vote

the overall logic looks great, one detail is that data_batch[0] and occ_result_all are 'batches', you can try to decollate before the inverse:

for occ_result in monai.data.decollate_batch(occ_result_all):
# for occ_result in occ_result_all:  # this also implicitly decollate
    ...
    inverted = test_transforms.inverse(occ_result)
    ...

(I'm converting this to a discussion)

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@sulaimanvesal
Comment options

@wyli
Comment options

wyli Sep 6, 2022
Collaborator

@sulaimanvesal
Comment options

@wyli
Comment options

wyli Sep 6, 2022
Collaborator

@sulaimanvesal
Comment options

Answer selected by sulaimanvesal
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
Converted from issue

This discussion was converted from issue #4935 on August 19, 2022 06:14.