Closed jonathanventura closed 3 years ago
Hi @jonathanventura
We initialize target
with zeros and only set values at the active pixels. So target - y_pred*mask
is zero everywhere except at the active pixels.
Your suggested loss should lead to the same result and looks like the safer choice to be honest :)
Ah, that makes sense -- thank you!
Why is the loss function
instead of
?