π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move
Manav Rathi6bb126e58fd1
diff --git a/web/packages/new/photos/services/embedding.ts b/web/packages/new/photos/services/embedding.tsindex 93b20a3c34..4ba6922c5d 100644--- a/web/packages/new/photos/services/embedding.ts+++ b/web/packages/new/photos/services/embedding.ts@@ -7,7 +7,8 @@ import { z } from "zod";import { decryptFileMetadata } from "../../common/crypto/ente";import { getAllLocalFiles } from "./files";import { saveFaceIndex } from "./ml/db";-import { faceIndexingVersion, type FaceIndex } from "./ml/types";+import { faceIndexingVersion } from "./ml/f-index";+import { type FaceIndex } from "./ml/types";/*** The embeddings that we (the current client) knows how to handle.diff --git a/web/packages/new/photos/services/ml/f-index.ts b/web/packages/new/photos/services/ml/f-index.tsindex 4ea0b25df2..641bf8a29a 100644--- a/web/packages/new/photos/services/ml/f-index.ts+++ b/web/packages/new/photos/services/ml/f-index.ts@@ -7,7 +7,6 @@ import type {Face,Point,} from "@/new/photos/services/ml/types";-import { faceIndexingVersion } from "@/new/photos/services/ml/types";import type { EnteFile } from "@/new/photos/types/file";import { getRenderableImage } from "@/new/photos/utils/file";import log from "@/next/log";@@ -29,6 +28,11 @@ import {warpAffineFloat32List,} from "./image";+/**+ * The version of the face indexing pipeline implemented by the current client.+ */+export const faceIndexingVersion = 1;+/*** Index faces in the given file.*diff --git a/web/packages/new/photos/services/ml/types.ts b/web/packages/new/photos/services/ml/types.tsindex 7ad0919124..1d3168d58b 100644--- a/web/packages/new/photos/services/ml/types.ts+++ b/web/packages/new/photos/services/ml/types.ts@@ -1,8 +1,3 @@-/** The face indexing version supported by the current client. */-// TODO: This belongs better to f-index.ts, but that file's in a different-// package currently, move it there once these two files are together again.-export const faceIndexingVersion = 1;-/*** The faces in a file (and an embedding for each of them).*