Manav Rathi 1 年之前
父節點
當前提交
b8734fcc6c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      web/apps/photos/src/services/face/f-index.ts

+ 4 - 0
web/apps/photos/src/services/face/f-index.ts

@@ -743,6 +743,10 @@ const extractFaceCrop = (
     imageBitmap: ImageBitmap,
     alignment: FaceAlignment,
 ): ImageBitmap => {
+    // TODO-ML: This algorithm is different from what is used by the mobile app.
+    // Also, it needs to be something that can work fully using the embedding we
+    // receive from remote - the `alignment.boundingBox` will not be available
+    // to us in such cases.
     const paddedBox = roundBox(enlargeBox(alignment.boundingBox, 1.5));
     const outputSize = { width: paddedBox.width, height: paddedBox.height };