Understanding semantics and geometry of scenes