Towards learning compact visual embeddings using deep neural networks