Viewpoint and Exemplar Generalization in Visual Prediction