Low-shot learning for object recognition, detection, and segmentation