Skip to content

Enet4/bag-of-colors-nb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Bags of Colors

This is a personal, unofficial implementation of bags of colors for image descriptors. It is based on the following paper:

Christian Wenger, Matthijs Douze, Hervé Jégou, "Bag-of-colors for improved image search". Online: https://dl.acm.org/citation.cfm?id=2072298.2072034

Using

Serve the notebook file with Jupyter. Image data sets need to be obtained and prepared separately, and some constants may have to be updated accordingly.

In order to prepare the data sets, create two directories, training_data and testing_data, each containing nothing but standard image files (e.g. PNG). A substantial amount of images is recommended (>10k).

Requirements

Python 3 is required. Aside from the given Python dependencies in requirements.txt, the Python bindings for Faiss must also be installed in the system. Please follow the instructions in the official repository on building Faiss for Python. GPU support is recommended, but the code can be easily adjusted to function without it.

License

MIT

Releases

No releases published

Packages

No packages published