π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Split
Manav Rathi88f9186be036
diff --git a/web/apps/photos/src/services/face/f-index.ts b/web/apps/photos/src/services/face/f-index.tsindex 1ca7daf9e3..6d0fc6fb2d 100644--- a/web/apps/photos/src/services/face/f-index.ts+++ b/web/apps/photos/src/services/face/f-index.ts@@ -155,8 +155,6 @@ const syncFileFaceDetections = async (fileContext: MLSyncFileContext) => {const detectFaces = async (imageBitmap: ImageBitmap,): Promise<Array<FaceDetection>> => {- const maxFaceDistancePercent = Math.sqrt(2) / 100;- const maxFaceDistance = imageBitmap.width * maxFaceDistancePercent;const { yoloInput, yoloSize } =convertToYOLOInputFloat32ChannelsFirst(imageBitmap);const yoloOutput = await workerBridge.detectFaces(yoloInput);@@ -164,6 +162,9 @@ const detectFaces = async (const inBox = newBox(0, 0, yoloSize.width, yoloSize.height);const toBox = newBox(0, 0, imageBitmap.width, imageBitmap.height);const faceDetections = transformFaceDetections(faces, inBox, toBox);++ const maxFaceDistancePercent = Math.sqrt(2) / 100;+ const maxFaceDistance = imageBitmap.width * maxFaceDistancePercent;return removeDuplicateDetections(faceDetections, maxFaceDistance);};