Skip to content

aldredb/vector-search-face-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face matching with ID

brew install uv

uv venv --python 3.12
source .venv/bin/activate

uv sync

Copy the environment variable template and fill in necessary information

cp .env.sample .env

Place IDs in the folder photos

mkdir -p photos

Load the images, embed and store to MongoDB Atlas

python3 embed_images.py

Create the following Vector Search index in the collection

{
  "fields": [{
    "type": "vector",
    "path": "embedding",
    "numDimensions": 512,
    "similarity": "euclidean"
  }]
}

Run the image search UI

python image_search.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages