Find the article for the code here
- Image Search
- Reverse Image Search
- Use
old_app.py
for brute force search - Use
annoy_app.py
for nearest neighbours search using Spotify's Annoy
To install the requirements use the following commands:
python3 -m pip install --upgrade pip
python3 -m pip install torch==1.7.1 torchvision==0.8.2 -f https://download.pytorch.org/whl/torch_stable.html
python3 -m pip install -r requirements.txt
- Celery to run indexing job in background
- A better DB to store millions of records(Redis or PostgreSQL)
- PCA for reducing feature dimensions