Entity-Based Scene Understanding