Generate a mask of borders of text instances and use it to increase the weights of those pixels when computing the loss. This helps reduce how often mask areas corresponding to adjacent words get merged into a single connected component, especially across lines.
Generate a mask of borders of text instances and use it to increase the weights of those pixels when computing the loss. This helps reduce how often mask areas corresponding to adjacent words get merged into a single connected component, especially across lines.