This code is the implementation for the network with the context-based feature reweighting in the paper:
Hyo Jin Kim, Enrique Dunn, and Jan-Michael Frahm. "Learned Contextual Feature Reweighting for Image Geo-Localization". Proc. of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. [pdf] [project page]
If you use our codes or models in your research, please cite:
@inproceedings{kim2017crn,
title={Learned Contextual Feature Reweighting for Image Geo-Localization},
author={Kim, Hyo Jin and Dunn, Enrique and Frahm, Jan-Michael},
booktitle={CVPR},
year= {2017}
}
*** Important Details for Training on New Datasets (described in the paper) ***
Step 1> Train the base representation (e.g. NetVLAD) first.
Step 2> Jointly train CRN (normal learning rate) + the base representation (lower learning rate).
In this way, the CRN is trained in a more stable manner + yields better performance.
Install the custom Caffe & PyCaffe (Includes custom layers built for this method)
Download dataset and perform pre-processing on query images (cropping of training queries to three square patches: {left, center, right} or {top, center, bottom} based on the aspect ratio of the original image. The patches should be named as [OriginalName]_aux1.jpg, [OriginalName].jpg, and [OriginalName]_aux2.jpg, respectively.) (Todo: provide script)
Learning rate scheduling: Learning rate scheduling is done through babysitting. Whenever the training loss reached a plateau, learning rate was reduced by gamma (as specified in the solver.prototxt).
请发表评论