Question about (to me) weird line used when exporting segmentation w LabelManager
#2915
Unanswered
vcasellesb
asked this question in
Q&A
Replies: 1 comment
-
|
Probable Reasons:
Region tasks (segmentation): Background is naturally encoded through regional assignments, so explicit probability manipulation isn't needed.
python The network's output might be "incomplete" due to the cropping operationSetting background=1 ensures proper probability mass distributionThis prevents unnaturally low background probabilities in non-region contexts
It avoids complex probability redistribution logic Ensures numerical stability in subsequent processing steps
Why It Might Make Sense: The key insight is that region-based tasks have inherently different spatial priors than global classification tasks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have a doubt regarding the following line in the
revert_cropping_on_probabilitiesmethod in theLabelManagerclass:Can someone explain to me what the rationale behind this line is? What this does is, if we are dealing with a non-region-based task, set all the "background" probabilities to 1 -- i.e., probs_reverted_cropping is a 4d array, first dimension is the classes dimension, with
N:=number of classesindices, the first one being the background always.Why is this needed? Wouldn't it make more sense to keep the background probabilities to what the net outputs? And why is it not necessary in region-based tasks? I feel like I'm missing something very obvious.
Thanks for your time! Best,
Vicent
Beta Was this translation helpful? Give feedback.
All reactions