Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to occlude all channels simultaneously #3543

Merged
merged 5 commits into from
Jan 13, 2022

Conversation

rijobro
Copy link
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.

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
@rijobro rijobro enabled auto-merge (squash) January 13, 2022 12:00
@wyli
Copy link
Contributor

wyli commented Jan 13, 2022

/build

@wyli
Copy link
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