AOSSIE-Org / AOSSIE-Org/PictoPy
Issue: Face Embedding Normalization Can Divide by Zero
オープン
backend
bug
- 主要言語
- Python
- スター
- 283
- フォーク
- 679
- 平均マージ
- 7日 2時間
- マージ済み PR(30日)
- 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 はまだ評価されていません。