Attribute-Aware Feature Encoding for Object Recognition and Segmentation