Semantic Image Segmentation with Contextual Hierarchical Models