AOSSIE-Org / AOSSIE-Org/PictoPy

Issue: Face Embedding Normalization Can Divide by Zero

未关闭
#632 2 条评论 0 个 reaction 已指派 1 人 已被 @prvn-kumar01 认领 在 GitHub 查看
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。