AOSSIE-Org / AOSSIE-Org/PictoPy
Issue: Face Embedding Normalization Can Divide by Zero
未关闭
backend
bug
- 主要语言
- Python
- 星标
- 283
- 派生
- 679
- 平均合并
- 7 天 2 小时
- 30 天内合并 PR
- 3
描述
FaceNet_util_normalize_embedding divides embeddings by np.linalg.norm(embedding) without guarding against zero-length vectors. When Facenet returns a near-zero tensor (e.g., because the detected crop was empty or corrupted), the norm becomes 0 and we produce NaN/Inf embeddings. These invalid values get committed to the database and break subsequent similarity comparisons.
贡献指南
评估
这个 Issue 还没有评估数据。