Smooth pixel-level irregularities in segmentation
Connection with single-pixel width causes downstream complications, e.g. risk of multiple contours when fitting a polygon; best to just dilate binary masks slightly and even parameterize a polygon fit in segmentation model itself, e.g.
from skimage.measure import *
approximate_polygon(find_contours(dilation(mask, square(2))))