You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there's a bug in the translation from ignore_zeros to ignore_index in the __init__ of SemanticSegmentationTask. self.ignore_zeros = None if kwargs["ignore_zeros"] else 0 should be: self.ignore_zeros = None if kwargs["ignore_zeros"] is None else 0 as is done when define loss function
self.ignore_zeros is later used to define the "self.ignore_index" of the self.train_metrics. For sake of clarity, I'd suggest renaming it to self.ignore_index directly in the __init__.
I believe there's a bug in the translation from ignore_zeros to ignore_index in the __init__ of SemanticSegmentationTask.
self.ignore_zeros = None if kwargs["ignore_zeros"] else 0
should be:self.ignore_zeros = None if kwargs["ignore_zeros"] is None else 0
as is done when define loss functionself.ignore_zeros
is later used to define the "self.ignore_index" of the self.train_metrics. For sake of clarity, I'd suggest renaming it toself.ignore_index
directly in the __init__.Therefore, this
would become
If you'd like, I can definitely push a PR for to fix this bug if the solution seems ok to all. Let me know.
The text was updated successfully, but these errors were encountered: