Learning Semantic Segmentation From Synthetic Data: A Geometrically Guided Input-Output Adaptation Approach