Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Sugar

Manav Rathi4d5ba47be42d
diff --git a/web/apps/photos/src/services/face/f-index.ts b/web/apps/photos/src/services/face/f-index.ts
index a1b7c94d98..0f6446e46f 100644
--- a/web/apps/photos/src/services/face/f-index.ts
+++ b/web/apps/photos/src/services/face/f-index.ts
@@ -287,7 +287,7 @@ const faceDetectionsFromYOLOOutput = (rows: Float32Array): FaceDetection[] => {
* @returns An array of face detections with duplicates removed.
*/
const removeDuplicateDetections = (
- detections: Array<FaceDetection>,
+ detections: FaceDetection[],
withinDistance: number,
) => {
detections.sort((a, b) => b.probability - a.probability);
@@ -313,7 +313,7 @@ const removeDuplicateDetections = (
}
}
- const uniques: Array<FaceDetection> = [];
+ const uniques: FaceDetection[] = [];
for (let i = 0; i < detections.length; i++) {
isSelected.get(i) && uniques.push(detections[i]);
}