Deep learning for building and validating geometric and semantic maps