Skip to main content

A command-line tool for obtaining face-matcher embeddings across 4 SOTA face-matchers.

Project description

QUICKMATCH

A simply command-line tool for conveniently using SOTA face-recognition networks.

Provided Face-Matchers

  1. ElasticFace
  2. ArcFace
  3. SphereFace
  4. FaceNet

Installation

Installation can be simply done by pip install quickmatch.

Dependancies

The following Python libraries are required for running inference on the face-matchers and can be installed by using pip install <library-name>. The package will automatically install them at the versions that were used to test it.

easydict
torch
tqdm
facenet-pytorch
onedrivedownloader

Usage

This library functions as a commandline tool which takes in a directory of images and the face-matcher you want to use create face-matcher embeddings that are stored in a .pt file. This .pt contains a stack of PyTorch tensors corresponding to all images. Note that the shape of the PyTorch tensor stack will be [N, D] where N is the number of images you provided in the input directory and D is the dimension that the matchers embed to (D$=512$ for all matchers).

For example, if you want to use "ArcFace" on a folder of images called my_face_shots, run the command by specifying these inputs and the output path of the file.

python3 -m ez-face-match --matcher=ArcFace --input-folder=my_face_shots --output-path=./matcher_embeddings.pt

The main.py file automatically checks if "cuda" is enabled or not (PyTorch must be installed and compiled with CUDA). Note, however, using a purely CPU runtime for the inference of these networks may take significantly longer. Additionally, upon first time use, the script will create a folder named quickmatch_pretrained_models at your default pip cache location. Here, the model weights will be downloaded and loaded automatically.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quickmatch-0.1.0.tar.gz (62.9 kB view details)

Uploaded Source

Built Distribution

quickmatch-0.1.0-py3-none-any.whl (102.6 kB view details)

Uploaded Python 3

File details

Details for the file quickmatch-0.1.0.tar.gz.

File metadata

  • Download URL: quickmatch-0.1.0.tar.gz
  • Upload date:
  • Size: 62.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.5

File hashes

Hashes for quickmatch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f7fb6531e83c5b8af735234fa9319d20c222998633af1d34a66f5f3cbf2f18f4
MD5 7ab48fdb5bb0d8d7f5cd100370e676e1
BLAKE2b-256 23e3fe151bb9e131c1041cca757b511c29910c37eeab3dd4363b754a3beef6fc

See more details on using hashes here.

File details

Details for the file quickmatch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quickmatch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 102.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.5

File hashes

Hashes for quickmatch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6efa3a5286875cce048eac01311e2676eb57d2e57209238ccee5aa71ed730906
MD5 afdbda1f6e1cdada301b9088f438df67
BLAKE2b-256 e92c9475b85285636867380daaefcbb916acba4a49bd51419051b3cf0904c58b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page