Python implementation of the HyDia protocol for privacy-preserving facial matching using Fully Homomorphic Encryption (FHE).
Based on the paper: HyDia: FHE-based Facial Matching with Hybrid Approximations and Diagonalization by Martin et al. (PETS 2025)
$ uv run main.py --query-image data/biden_1.jpg --database-dir data/database --scenario identities
Matched identities: ['biden']See uv run main.py -h for more details.