scripts to get segmentations