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

Add functionality to mask to-bg-boundaries #62

Merged
merged 3 commits into from
Jun 14, 2022

Conversation

JonasHell
Copy link
Contributor

The new BoundaryTransform labels the to-bg-boundaries with a dedicated label (e.g. -1).
This can already be interpreted by the RF training procedure.
MaskIgnoreLabel in combination with LossWrapper now also allows trainer instances to interpret this correctly.
The LossWrapper was modified to also allow a mask to be given directly (used via ApplyMask).
The new sampler is needed to make sure that there is still foreground signal left in the image after masking the to-bg-boundaries. Unfortunately, right now it calls the new BoundaryTransform.

Copy link
Owner

@constantinpape constantinpape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@constantinpape constantinpape merged commit f48e7ab into constantinpape:main Jun 14, 2022
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.

None yet

2 participants