One technique that is normally used to improve the results of the segmentation output is to use Conditional Random Fields (CRF) at the post-processing stage, by taking into account pure RGB features of the image and probabilities produced by our network: