AOSSIE-Org / AOSSIE-Org/PictoPy
Issue: Face Embedding Normalization Can Divide by Zero
Đang mở
backend
bug
- Ngôn ngữ chính
- Python
- Star
- 283
- Fork
- 679
- Merge trung bình
- 7 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.