1. A method for object localization in a query image, comprising: for each of a set of annotated images, providing an annotated image representation based on activations output by a layer of a model derived from part of a trained neural network, the annotated images each being annotated with object location information; for a query image, generating a query image representation based on activations output by the layer of the model; identifying a subset of the annotated images comprising computing a similarity between the query image representation and each of the annotated image representations; transferring object location information from at least one of the subset of annotated images to the query image; and outputting information based on the transferred object location information, wherein at least one of the generating a query image representation, identifying a subset of the annotated images, transferring object location information, and outputting information is performed with a processor.