This code is provided as is with the hope to be useful for understanding the Neural BoF method. If you use this code in your paper please cite the following paper:
@article{neural-bof, title = "Neural Bag-of-Features learning", author = "Passalis, Nikolaos and Tefas, Anastasios", journal = "Pattern Recognition", volume = "64", number = "", pages = "277 - 294", year = "2017", doi = "http://dx.doi.org/10.1016/j.patcog.2016.11.014", }
To run this code, download the 15-scene dataset and the pretrained CNN used for extracting the feature vectors and set the paths in the code.
Also, be sure to check my website for more projects and stuff!