A Unified Architecture for Instance and Semantic Segmentation