Skip to content

option to occlude all channels simultaneously#3543

Merged
rijobro merged 5 commits intoProject-MONAI:devfrom
rijobro:occ_sens_all_channels
Jan 13, 2022
Merged

option to occlude all channels simultaneously#3543
rijobro merged 5 commits intoProject-MONAI:devfrom
rijobro:occ_sens_all_channels

Conversation

@rijobro
Copy link
Copy Markdown
Contributor

@rijobro rijobro commented Dec 23, 2021

Our current implementation of occlusion sensitivity occludes each channel individually. This PR allows all channels to be occluded simultaneously, which is useful for eg with RGB images, where intuitively it makes sense to block them together.

If per_channel is True (previous implementation, current default for backwards compatibility), the output shape is:
B, C, H, W, [D], num_classes.

When per_channel is False, output shape is:
B, 1, H, W, [D], num_classes
making it easier to visualise.

@rijobro rijobro enabled auto-merge (squash) January 13, 2022 12:00
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Jan 13, 2022

/build

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Jan 13, 2022

/build

@rijobro rijobro merged commit 3a26702 into Project-MONAI:dev Jan 13, 2022
@rijobro rijobro deleted the occ_sens_all_channels branch January 14, 2022 09:56
wyli pushed a commit that referenced this pull request Jan 14, 2022
* option to occlude all channels simultaneously
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants