Skip to main content

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.

Metadata

Release files for quickmatch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quickmatch 0.1.0
File Size Uploaded
quickmatch-0.1.0.tar.gz 62.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quickmatch 0.1.0
File Interpreter ABI Platform
quickmatch-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 165.5 kB

Release files / quickmatch-0.1.0.tar.gz

Download URL quickmatch-0.1.0.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f7fb6531e83c5b8af735234fa9319d20c222998633af1d34a66f5f3cbf2f18f4
BLAKE2b-256 checksum
How to use checksums
23e3fe151bb9e131c1041cca757b511c29910c37eeab3dd4363b754a3beef6fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.5

Release files / quickmatch-0.1.0-py3-none-any.whl

Download URL quickmatch-0.1.0-py3-none-any.whl
Size 102.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6efa3a5286875cce048eac01311e2676eb57d2e57209238ccee5aa71ed730906
BLAKE2b-256 checksum
How to use checksums
e92c9475b85285636867380daaefcbb916acba4a49bd51419051b3cf0904c58b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page