Adaptive Contextual Perception: How To Generalize To New Backgrounds and Ambiguous Objects