The original repo is https://github.com/figitaki/deep-retrieval, for convenience of use.
I had added the cpp, cu and hpp, proto files that are needed for this repo. Men that are interested in this repo can clone my repo and move aforementioned files into your own caffe or the official BVLC caffe to compile with those new layers. Besides, one can download the model file provided by author from here: http://www.europe.naverlabs.com/Research/Computer-Vision/Learning-Visual-Representations/Deep-Image-Retrieval