Exploiting Semantics And Symmetries In Structure From Motion